-->
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: Info on creating custom EntityPersister
PostPosted: Sun Jun 07, 2009 7:52 am 
Newbie

Joined: Sun Jun 07, 2009 7:20 am
Posts: 1
I think I need to create a custom EntityPersister implementation - I have a class that needs to be saved to the DB using Java API methods rather than plain SQL.
I see various mentions of the possibility to create a custom EntityPersister implementation, but I can't find much info on what is involved.
Are there any such guide or examples?
Thanks
Tim


Top
 Profile  
 
 Post subject: Re: Info on creating custom EntityPersister
PostPosted: Mon Nov 23, 2009 1:36 pm 
Newbie

Joined: Wed Jun 28, 2006 8:58 am
Posts: 9
Looking for the same thing: some example/help on implementing EntityPersister. In my case I want to persist a mix of data, some data from a relational DB and some not, all within the Hibernte Session/Transaction persistence interface. One interface for the end developer, so they don't know/care where the data is persisted. It looks like implementing EntityPersister is the strategy for that, right?

An alternate approach would be to layer my own session/transaction interface over hibernate and handle non-database data completely outside of Hibernate. However, it is attractive to plug into the Hibernate infrastructure for session, transaction, caching, etc.

This seems like a design concept that Hibernate would want to support, taking the persistence abstraction beyond just relational databases. Can anyone provide some advice on this issue?

Thanks,

Greg


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.