-->
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: Hibernate does not support JPA with HBM mapping
PostPosted: Fri Jun 17, 2011 3:36 am 
Newbie

Joined: Thu Oct 18, 2007 5:07 am
Posts: 3
Hi all,

I've ran into a problem yesterday when trying to switch my mapping from annotations to HBM xml file. Since then all my JPA criteria based queries won't work.

My entities were mapped using JPA standard annotations, and some Hibernate specifics where set (@Sort for sortedSets for instance). All my Criteria queries where working just fine, nothing to declare.
I tried to remove the annotations and replace them with HBM mapping and so far I encountered 2 problems.
Code:
Path<Long> fileId = bf.get("fileId");
won't work. Hibernate cannot resolve any ID to create a Path. resolving normal properties just works fine.
Code:
Root<Batch> b = cq.from(Batch.class);
produces a corrupted JPA-QL query:
Code:
select alias from null alias where ...


mapping with orm.xml seems to work fine though.

Is that a known bug for hibernate (I'm using 3.6.4-FINAL)? Is there any documentation explaining this behavior?

Thank you for your help.


Top
 Profile  
 
 Post subject: Re: Hibernate does not support JPA with HBM mapping
PostPosted: Mon Jun 20, 2011 11:23 pm 
Newbie

Joined: Mon Jun 20, 2011 11:22 pm
Posts: 1
hi everyone

_________________
seatac tax limo services seattle - seattle airport limo service seattle - seattle taxi


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.