Hibernate (Java): Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
(→Links) |
|||
Zeile 17: | Zeile 17: | ||
[https://howtodoinjava.com/hibernate/hibernate-jpa-2-persistence-annotations-tutorial https://howtodoinjava.com/hibernate/hibernate-jpa-2-persistence-annotations-tutorial] | [https://howtodoinjava.com/hibernate/hibernate-jpa-2-persistence-annotations-tutorial https://howtodoinjava.com/hibernate/hibernate-jpa-2-persistence-annotations-tutorial] | ||
[https://www.thoughts-on-java.org/mapping-definitions-jpa-hibernate-annotations-xml/ https://www.thoughts-on-java.org/mapping-definitions-jpa-hibernate-annotations-xml/] | |||
Zurück zu [[Java#Frameworks|Java]] | Zurück zu [[Java#Frameworks|Java]] |
Version vom 29. Juli 2018, 10:05 Uhr
Hibernate 2
Sub Query
ExtendedDetachedCriteria voucherCriteria = ExtendedDetachedCriteria.forClass(DocumentParameters.class); voucherCriteria.setProjection(Projections.property("targetVoucherType")); voucherCriteria.add(Restrictions.eq("client", client)); ExtendedDetachedCriteria invoiceCriteria = ExtendedDetachedCriteria.forClass(IncomingInvoice.class); invoiceCriteria.add(Subqueries.propertyIn("voucherType", voucherCriteria));
Hibernate 5
Links
https://howtodoinjava.com/hibernate/hibernate-jpa-2-persistence-annotations-tutorial
https://www.thoughts-on-java.org/mapping-definitions-jpa-hibernate-annotations-xml/
Zurück zu Java