-->
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.  [ 4 posts ] 
Author Message
 Post subject: Custom load SQL with annotations
PostPosted: Sun Oct 01, 2006 5:37 pm 
Beginner
Beginner

Joined: Sun Jan 22, 2006 6:56 am
Posts: 29
According to section 16.5 in the hibernate 3 reference manual it is possible to write custom load SQL in hbm files. Is this possible somehow when using EJB3/hibernate annotations?

I don't want to resort to using an hbm file to map all the class fields because of one association that requires a special query...


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 02, 2006 9:58 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
not yet, but a patch is welcome, it should be pretty straightforward

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 02, 2006 11:49 am 
Beginner
Beginner

Joined: Sun Jan 22, 2006 6:56 am
Posts: 29
Thanks, but it looks like that would be a bit too much for me.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Nov 04, 2006 12:50 pm 
Beginner
Beginner

Joined: Sun Jan 22, 2006 6:56 am
Posts: 29
OK, wrote a patch - but someone beat me to it. It's being tracked in
http://opensource.atlassian.com/projects/hibernate/browse/ANN-37


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