-->
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: Storing _hibernate_class on @IndexedEmbedded
PostPosted: Thu Feb 28, 2013 5:54 pm 
Pro
Pro

Joined: Wed Nov 05, 2003 7:22 pm
Posts: 211
Hi,

Is it possible to store _hibernate_class on an @indexedEmbedded association? I haven't been able to do that by
includePaths={"id","_hibernate_class"}

This can be useful if you are retrieving the data directly from the Lucene index and the associated class uses inheritance.

You can of course store a transient field that returns the class name. But just wondering.


Top
 Profile  
 
 Post subject: Re: Storing _hibernate_class on @IndexedEmbedded
PostPosted: Fri Mar 01, 2013 8:01 am 
Hibernate Team
Hibernate Team

Joined: Fri Oct 05, 2007 4:47 pm
Posts: 2536
Location: Third rock from the Sun
Hi,
no that's not possible today - not without the tricks you mentioned as adding a field.

you mean you're creating domain objects directly from projected fields?

_________________
Sanne
http://in.relation.to/


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.