File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Object Relational Mapping
[Hibernate] Selection Collection from table.
Joined: Dec 21, 2011
Dec 21, 2011 10:51:07
How to selection Collection from table without using Query query = session.createQuery(SQL_QUERY); ??
My example :
BlockedProces process = (BlockedProcess)session.get(BlockedProcess.class,clientIP_id.getClientIP_id());
But throws Exception:
org.hibernate.HibernateException: More than one row with the given identifier was found: /192.168.1.2, for class: hibernate_logic.BlockedProcess
How to get a collection instead of just one object?
Aravind M Jay
Joined: Mar 16, 2006
Dec 22, 2011 03:33:21
Criteria API is one of the ways -
rocket mass heater
subject: [Hibernate] Selection Collection from table.
copy data from one table on server1 to another table of server2
Can you update two independent tables with one fireTableChanged from DB Query
What Is the Correct Syntax?
Select all row values using JPA
setting runtime selection criteria in a jsp for crystal reports11 using jrc
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015