-->
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: CompositeUserType for Polymorphic components?
PostPosted: Tue Aug 17, 2004 11:36 pm 
Newbie

Joined: Thu May 27, 2004 9:41 pm
Posts: 6
Hibernate version:
2.1
Mapping documents:

Code between sessionFactory.openSession() and session.close():

Full stack trace of any exception that occurs:

Name and version of the database you are using:
DB2 8

Debug level Hibernate log excerpt:


I have a component in an entity that is abstract. The properties for the components are the abstract getters.

First off, components cannot be polymorphic correct?
http://forum.hibernate.org/viewtopic.ph ... +component


I have seen in a previous post where Gavin mentioned that this may be achieved using a CompositeUserType?
http://forum.hibernate.org/viewtopic.ph ... +component


Are there any examples of such case ? or any advice on this matter?

I am curious how nullSafeGet/Set can be implemented if the actual subclasses will need to be referred to?

Any advice is greatly appreciated.


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.