-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 
Author Message
 Post subject: XML mapping files in JavaSE
PostPosted: Thu Aug 17, 2006 7:56 am 
Newbie

Joined: Wed Feb 25, 2004 10:46 am
Posts: 19
Hello,

this is not really a hibernate-specific question, but rather about the interpretation of the JPA spec.

If I read correctly, the spec mandates for JavaSE applications to specify the entity classes to be included in the persistence unit using the class element inside persistence.xml.

Now, with the class element, which holds the fully qualified class name only, I see no way to specify an XML mapping file, also. This yields 2 questions:

- is there a way to portably specify XML mappings in a JavaSE environment?
- if there is none, does Hibernate provide one? Perhaps the old mechanism of loading colocated mapping files named after the classes?

thanks,
Christian


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 18, 2006 6:14 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
<mapping-file>...</mapping-file>
And META-INF/orm.xml is scanned too.

But this is definitely in the HEM reference documentation.

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 18, 2006 6:52 pm 
Newbie

Joined: Wed Feb 25, 2004 10:46 am
Posts: 19
yes, thanks.

However, that seems to be a hibernate extension that is not guaranteed by the spec. I did read that most providers already support these mechanisms, but find it strange that it would not be included in the standard.

christian


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 18, 2006 11:06 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
<mapping-file>...</mapping-file> is standard AFAIK

_________________
Emmanuel


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.