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
Win a copy of
REST with Spring (video course)
this week in the
Object Relational Mapping
Hibernate Criteria For Child One-To-Many Relationship
Joined: Apr 29, 2013
Apr 29, 2013 19:37:40
I have relation one to many table like this
CUSTOMER(ID, NAME, ADDRESS) ONE-TO-MANY ORDER(ID,ID_PRODUCT, DATE)
this is my sql code = "SELECT * FROM CUSTOMER LEFT JOIN ORDER ON CUSTOMER.ID=ORDER.ID WHERE ID_PRODUCT LIKE '001' "
If I use DetachCriteria how I can write the criteria correctly
DetachedCriteria crit = DetachedCriteria.forClass(getDomainClass());
/**How can I write the criteria here**/
Thanks for your help.
menggunakan createCriteria HQL.png
I agree. Here's the link:
subject: Hibernate Criteria For Child One-To-Many Relationship
session take older value
how to write the jpql to query against the one to many table
Using Oracle squence in Hibernate
Designing in Hibernate
Transposing rows to columns
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015