| Method |
Description |
add |
The Add method adds a Criterion to constrain the results
to be retrieved. |
| addOrder |
Add an Order to the result set. |
| createAlias |
Join an association, assigning an
alias to the joined entity |
| createCriteria |
This method is used to create a new
Criteria, "rooted" at the associated entity. |
| setFetchSize |
This method is used to set a fetch
size for the underlying JDBC query. |
| setFirstResult |
This method is used to set the first
result to be retrieved. |
| setMaxResults |
This method is used to set a limit
upon the number of objects to be retrieved. |
uniqueResult
|
This method is used to instruct the
Hibernate to fetch and return the
unique records from database. |
| Method |
Description |
Restriction.allEq
|
This is used to apply an
"equals" constraint to each property in the key set of a Map |
Restriction.between
|
This is used to apply a
"between" constraint to the named property |
Restriction.eq
|
This is used to apply an
"equal" constraint to the named property |
Restriction.ge
|
This is used to apply a "greater
than or equal" constraint to the named property |
Restriction.gt
|
This is used to apply a "greater
than" constraint to the named property |
Restriction.idEq |
This is used to apply an
"equal" constraint to the identifier property |
Restriction.ilike
|
This is case-insensitive
"like", similar to Postgres ilike operator |
Restriction.in |
This is used to apply an
"in" constraint to the named property |
Restriction.isNotNull |
This is used to apply an "is not
null" constraint to the named property |
Restriction.isNull |
This is used to apply an "is
null" constraint to the named property |
Restriction.le |
This is used to apply a "less
than or equal" constraint to the named property |
Restriction.like |
This is used to apply a
"like" constraint to the named property |
Restriction.lt |
This is used to apply a "less
than" constraint to the named property |
Restriction.ltProperty |
This is used to apply a "less
than" constraint to two properties |
Restriction.ne |
This is used to apply a "not
equal" constraint to the named property |
Restriction.neProperty |
This is used to apply a "not
equal" constraint to two properties |
Restriction.not |
This returns the negation of an
expression |
Restriction.or |
This returns the disjuction of
two expressions |
Current Comments
10 comments so far (post your own) View All Comments Latest 10 Comments:Hi,
Please suggest the Hibernate examples. We will develop the code examples.
Thanks
Deepak Kumar
Posted by Deepak on Tuesday, 06.3.08 @ 21:18pm | #61983
Hi,
The site is very good to learn Hibernate Basics.Its better to have few more examples with detailed explanation of each.
Posted by Sandeep on Tuesday, 06.3.08 @ 11:21am | #61922
Good tutorial to learn basics of Hibernate. It can't help much to learn detailed concepts of Hibernate.
Posted by Tids on Friday, 03.28.08 @ 11:03am | #54554
It is the best site to know clearly the programming on hibernate
Posted by saroj on Wednesday, 02.20.08 @ 13:41pm | #49192
Hello everyone,
I'm new to hibernate-struts so i want to ask question.
How to display data using hibernate struts without using criteria?
thanks
Posted by Ehsan on Thursday, 10.4.07 @ 13:59pm | #31359
session.close() should be in finally block
Posted by friend on Thursday, 03.8.07 @ 00:29am | #11049
there are so many good examples of hibernate queries but there is no any example of "how to use stored procedures with hibernate".
Thanks
Posted by sweta gupta on Wednesday, 01.31.07 @ 11:16am | #4844
Good! I appreciate the example, but should have tried to implement all possible methods as much as possible in the above example.
Posted by Balapani on Wednesday, 01.31.07 @ 04:23am | #4785
I Think, it's a good example to understand criteria query.
Posted by Lokesh Thakur on Friday, 01.12.07 @ 15:41pm | #3281
it's good but hibernate with struts examples would be jsp presentations.Loss of presentation code is there.
Posted by janardhan on Monday, 12.11.06 @ 17:10pm | #851