-->
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.  [ 3 posts ] 
Author Message
 Post subject: Custom EntityPersister
PostPosted: Mon Jul 06, 2009 10:22 am 
Newbie

Joined: Thu Sep 15, 2005 10:04 am
Posts: 14
Hi,
I need to implement a new mapping strategy whereby the properties of a class are stored in a so-called entity-attribute-value table structure. This structure can be mapped explicitly in hibernate to, but this results in more complex hql querying and also different hql querying from types which are stored in a traditional table structure.
So I would prefer a different approach. After some study my conclusion is that a custom EntityPersister is the way to go. Is this indeed a correct direction?
However, the Hibernate EntityPersister implementations are complex (as they must do many things ofcourse...). Are there other examples of custom EntityPersister implementations?

Thanks for any help/pointers on this!

gr. Martin


Top
 Profile  
 
 Post subject: Re: Custom EntityPersister
PostPosted: Wed Nov 04, 2009 6:17 am 
Newbie

Joined: Mon Nov 02, 2009 11:06 am
Posts: 2
Did you find a way to implement your custom EntityPersister? I would appreciate any hint!

Greetings
Felix


Top
 Profile  
 
 Post subject: Re: Custom EntityPersister
PostPosted: Wed Nov 04, 2009 6:35 am 
Newbie

Joined: Thu Sep 15, 2005 10:04 am
Posts: 14
Hi Felix,
No I didn't implement my own entity persister I choose a different strategy. I created an set of classes which reflected the tables I wanted and converted from my domain objects to EAV objects which were then persisted using standard Hibernate.

gr. Martin


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