-->
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: How to make this: "SELECT userid,username, 'S' from use
PostPosted: Mon Dec 01, 2003 12:18 pm 
Newbie

Joined: Mon Dec 01, 2003 10:31 am
Posts: 4
Is very difficult to work with hibernate if I can't make unions and declare constants.

Another solution is to make 2 querys, and with java add the constants. It's not beautiful, but it works.

Is there another solution with hibernate?

A lot of thanks,

Marcial


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 01, 2003 5:38 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
You can always get the connection and use straight JDBC for this special situation, eg, session.getConnection()


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.