Hibernate (Java): Unterschied zwischen den Versionen

Aus Tutorials
Zur Navigation springen Zur Suche springen
Zeile 25: Zeile 25:


==== Links ====
==== Links ====
[http://webdev.jhuep.com/~jcs/ejava-javaee/coursedocs/605-784-site/docs/content/html/hibernate-migration-orm.html#hibernate-migration-orm-mapping http://webdev.jhuep.com/~jcs/ejava-javaee/coursedocs/605-784-site/docs/content/html/hibernate-migration-orm.html#hibernate-migration-orm-mapping]


[https://www.eclipse.org/webtools/dali/docs/3.2/user_guide/task_manage_orm.htm https://www.eclipse.org/webtools/dali/docs/3.2/user_guide/task_manage_orm.htm]
[https://www.eclipse.org/webtools/dali/docs/3.2/user_guide/task_manage_orm.htm https://www.eclipse.org/webtools/dali/docs/3.2/user_guide/task_manage_orm.htm]
[https://www.eclipse.org/webtools/dali/docs/3.2/user_guide/concepts001.htm#CHDBIJAC https://www.eclipse.org/webtools/dali/docs/3.2/user_guide/concepts001.htm#CHDBIJAC]




Zurück zu [[Java#Frameworks|Java]]
Zurück zu [[Java#Frameworks|Java]]

Version vom 1. August 2018, 18:07 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

Annotations

Links

https://howtodoinjava.com/hibernate/hibernate-jpa-2-persistence-annotations-tutorial

https://www.thoughts-on-java.org/mapping-definitions-jpa-hibernate-annotations-xml/

Object-Relational Mapping

Links

http://webdev.jhuep.com/~jcs/ejava-javaee/coursedocs/605-784-site/docs/content/html/hibernate-migration-orm.html#hibernate-migration-orm-mapping

https://www.eclipse.org/webtools/dali/docs/3.2/user_guide/task_manage_orm.htm

https://www.eclipse.org/webtools/dali/docs/3.2/user_guide/concepts001.htm#CHDBIJAC


Zurück zu Java