-->
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: Accessing entity model
PostPosted: Fri Apr 11, 2014 12:43 pm 
Newbie

Joined: Fri Apr 11, 2014 10:23 am
Posts: 1
I'm developing an auditing library like 'hibernate envers' and using JPA with hibernate as the provider. So my domain classes are annotated by JPA annotations.
Because I need to access entity model before persistence provider (i.e. HibernatePersistence) build EntityMangerFactory, I create a subclass of HibernatePersistence.
And in createEntityManagerFactory method I want to have some information about entities and their relationships. I do not want to start from scratch reading annotations on my entity classes.
Envers use classes in org.hibernate.mapping package (PersistentClass, Property, ...). I'd like to use it but could not find some important things. For example I could not find which side is the owner of relation for all kind of *-to-many or one-to-one relations.
I have some questions :
1. Basically, is this package the good choice at all?
2. If yes, how can I use it?
3. if no, is there a better way? what's it? may you help me to find the right way?

Thanks in advance for your help


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.