-->
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: Some questions for hibernate
PostPosted: Sun Dec 26, 2010 1:01 am 
Newbie

Joined: Sun Dec 26, 2010 12:47 am
Posts: 1
I'm a newer for hibernate, and used to use JDBC for persistence layer. Now I have some questions for hibernate as below:

1. If I have a large table contains a large numbers of columns, in one or two column(s), I wanna use the keyword as "like" or operation as ">", "<". Is it have to use hql for all columns query, or is there any way for mapping other exactly match columns automatically and use hql for the special columns only.

2. If I have 2 tables ones contains the other's keys in one column split for "," like "1,2,4,5" (the number is the key in other table), how can I mapping it for one-many. And if the user need to query something like 1st table contains "1,5" information how can I wrtie the hql? Using keyword like?

Thanks a lot for helping.


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.