-->
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: How to reuse common mapping body
PostPosted: Wed Jul 12, 2006 10:40 am 
Newbie

Joined: Tue Nov 22, 2005 10:08 am
Posts: 17
I use entity-name feature to map 2 tables to single pojo class (com.TextItem). How can I reuse mapping body? Is there any inheritance feature so I can get rid of obvious duplication?

<hibernate-mapping>

<class name="com.TextItem" entity-name="TextItemA"
table="TEXT_A">

<property name="expired" column="EXPIREDATE" />
<property name="text" column="TEXT" />
</class>

<class name="com.TextItem" entity-name="TextItemB"
table="TEXT_B">

<property name="expired" column="EXPIREDATE" />
<property name="text" column="TEXT" />
</class>

</hibernate-mapping>


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.