-->
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: Mapping entity with JPA and Hibernate xml config files
PostPosted: Thu Nov 13, 2008 9:24 am 
Beginner
Beginner

Joined: Mon Sep 01, 2008 9:35 am
Posts: 24
Hi,

I know it is possible to mix features from JPA and Hibernate by using annotations. But is it possible to mix these features using xml config files?

I tried to use two config files (Entity.orm.xml and Entity.hbm.xml), one using entity-mappings (JPA) and the other using hibernate-mapping (Hibernate). Each of them would map specific properties of the entity. But when I do that, I get an error saying that Entity is already mapped.

Any solution for that??

Thanks in advance,
Vitor.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 13, 2008 5:15 pm 
Beginner
Beginner

Joined: Mon Sep 01, 2008 9:35 am
Posts: 24
any ideas??


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.