-->
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.  [ 1 post ] 
Author Message
 Post subject: Tip: Build an orm.xml
PostPosted: Thu Aug 05, 2010 12:43 pm 
Newbie

Joined: Thu Nov 19, 2009 1:21 pm
Posts: 5
I was having issues with Hibernate, specifically the meta model stuff.

That's because my persistent classes were scattered across 3 packages:

support: base classes everything inherits from
gen: generated source code my modeling tool spits out.
main: my customized code.

So every entity was in 3 packages:

support: mappedsuperclass
gen: mappedsuperclass extends support
main: entity extends gen

The problem I was having with the metamodel was that it wasn't generating any extends lines for the superclasses.

My problems all went away when I listed everything in orm.xml. The annotations still set everything, but now Hibernate can find everything.


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

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.