-->
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.  [ 2 posts ] 
Author Message
 Post subject: Components and reuse
PostPosted: Wed May 02, 2007 12:31 am 
Beginner
Beginner

Joined: Wed May 02, 2007 12:24 am
Posts: 41
Hello,

I have a component (let's call it address). I'm reusing it in a bunch of persistent classes. Because the corresponding tables for those classes have fields for the address.

My question is: Is there a way I can define the mapping for address in one place and reuse it in other mappings?

thanks


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 02, 2007 4:17 am 
Senior
Senior

Joined: Mon Aug 21, 2006 9:18 am
Posts: 179
AFAIK the only choice is to make it a bonified Entity with its own class mapping and use <many-to-one>s.

I'd like to see subclassing of components too...someday

_________________
If this helped...please remember to rate it!


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.