Find out where Hibernate has loaded its config/mappings from atruntime

Discussion in 'Java' started by Sébastien de Mapias, Aug 18, 2008.

  1. Hi,
    Is there a way to retrieve, at runtime, the list of .hbm.xml and the
    hibernate.cfg.xml files that Hibernate is using ? Kind of
    ~ props[] = sessionFactory.getConfigFilesLocationAndNames();
    or
    ~ props[] = something.getMappingFilesList();
    etc...

    Thanks.
    SR
     
    Sébastien de Mapias, Aug 18, 2008
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. jstorta
    Replies:
    1
    Views:
    11,834
  2. samwyse
    Replies:
    3
    Views:
    321
    Rachel P
    Jun 26, 2009
  3. thunk
    Replies:
    1
    Views:
    348
    thunk
    Mar 30, 2010
  4. thunk
    Replies:
    0
    Views:
    525
    thunk
    Apr 1, 2010
  5. thunk
    Replies:
    14
    Views:
    655
    thunk
    Apr 3, 2010
Loading...

Share This Page