<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Hibernate on Laliluna.de - Sebastian Hennebrüder</title><link>https://www.laliluna.de/tags/hibernate/</link><description>Recent content in Hibernate on Laliluna.de - Sebastian Hennebrüder</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Wed, 12 Jan 2011 00:00:00 +0000</lastBuildDate><atom:link href="https://www.laliluna.de/tags/hibernate/index.xml" rel="self" type="application/rss+xml"/><item><title>JBoss Weld transactions with JPA and Hibernate in Java SE</title><link>https://www.laliluna.de/articles/2011/01/12/jboss-weld-jpa-hibernate.html</link><pubDate>Wed, 12 Jan 2011 00:00:00 +0000</pubDate><guid>https://www.laliluna.de/articles/2011/01/12/jboss-weld-jpa-hibernate.html</guid><description>&lt;p&gt;I am using Weld in a plain Java application (alias Java SE). I would like to inject an entity manager and use a &lt;em&gt;@Transactional&lt;/em&gt; annotation to mark a method as transactional. A transaction should be&#10;started before the method is executed and commited after the method was called. In addition exceptions should cause a rollback of the transaction.&lt;/p&gt;&#10;&lt;pre class="lang-java"&gt;&#10;@ApplicationScoped &#10;public class PlayerServiceBean {&#10;&#10;&#9;@Inject&#10;&#9;private EntityManager em;&#10;&#10;&#9;@Transactional&#10;&#9;public void createPlayer(Player player) {&#10;&#9;&#9;em.persist(player);&#10;&#9;}&#10;}&#10;&lt;/pre&gt;&#10;&lt;h2&gt;The wrong way&lt;/h2&gt;&#10;&lt;p&gt;I found various discussions but as at the time of writing JBoss Weld is still young, there seems to be no various ideas floating around but no best way.&lt;/p&gt;</description></item><item><title>Performance Tuning Tips for Hibernate and Java Persistence</title><link>https://www.laliluna.de/articles/java-persistence-hibernate/performance-tips-hibernate-java-persistence.html</link><pubDate>Tue, 27 Jan 2009 00:00:00 +0000</pubDate><guid>https://www.laliluna.de/articles/java-persistence-hibernate/performance-tips-hibernate-java-persistence.html</guid><description>&lt;p&gt;This article is an extract of the&#10;chapter Performance of my book &lt;b&gt;Hibernate and Java Persistence by&#10;Example&lt;/b&gt;. &#10;&lt;/p&gt;&#10;&lt;p&gt;The book is available in English as&#10;eBook (PDF document) and in German as paper book. The eBook is&#10;continuously updated and covers the newest features of Hibernate. You&#10;will find a complete table of content on my website&#10;http://www.laliluna.de&lt;/p&gt;&#10;&lt;h2&gt;Introduction&lt;/h2&gt;&#10;&lt;p&gt;There is a incredible choice of options&#10;to improve the performance of Hibernate based application. This&#10;chapter describes quite a number of them. Each part starts with a&#10;small use case describing the problem or requirement. After this you&#10;will find a detailed solution how to solve the problem.&lt;/p&gt;</description></item><item><title>Hibernate Search with Lucene</title><link>https://www.laliluna.de/articles/java-persistence-hibernate/hibernate-search-lucene.html</link><pubDate>Mon, 12 Jan 2009 00:00:00 +0000</pubDate><guid>https://www.laliluna.de/articles/java-persistence-hibernate/hibernate-search-lucene.html</guid><description>&lt;p&gt;This article is an extract of my book &lt;b&gt;Hibernate and Java&#10;Persistence by Example&lt;/b&gt;. &#10;&lt;/p&gt;&#10;&lt;p&gt;The book is available in English as eBook (PDF document) and in&#10;German as paper book. The eBook is continuously updated and covers&#10;the newest features of Hibernate. You will find a complete table of&#10;content on my website &lt;a href="https://www.laliluna.de/"&gt;http://www.laliluna.de&lt;/a&gt;&lt;/p&gt;&#10;&lt;p&gt;Source code: &lt;a href="https://www.laliluna.de/download/hibernate-search.zip"&gt;http://www.laliluna.de/download/hibernate-search.zip&lt;/a&gt;&lt;/p&gt;&#10;&lt;h2&gt;Introduction&lt;/h2&gt;&#10;&lt;p&gt;Lucene is a popular full text search&#10;engine. You can index documents, websites or arbitrary other data.&#10;The index can be searched with a API. Hibernate Search integrates&#10;Lucene Search with Hibernate. Entities can be indexed easily and with&#10;a special session, you can perform a full text search for your&#10;entities. A lot of databases provides already their own mechanism for&#10;full text search. But those solutions are not portable across&#10;databases and Lucene is probably more powerful and flexible than&#10;proprietary solutions. &#10;&lt;/p&gt;</description></item><item><title>@javax.persistence.AttributeOverride</title><link>https://www.laliluna.de/articles/java-persistence-hibernate/javax.persistence.attributeoverride.html</link><pubDate>Thu, 01 Jan 2009 00:00:00 +0000</pubDate><guid>https://www.laliluna.de/articles/java-persistence-hibernate/javax.persistence.attributeoverride.html</guid><description>&lt;img align="right" src="https://www.laliluna.de/images/hibernate-buch/9783898426350-small.gif" alt="hibernate buch cover klein"&gt;&lt;p&gt;Extract of the annotation reference in the Hibernate Developer Guide by example&lt;/p&gt;&#10;&lt;p&gt;Extensive, easy-to-follow introduction to Hibernate 3 including complete working examples. Integration of Hibernate with other technologies like Spring, EJB3, Struts and JavaServer Faces (MyFaces) is explained.&lt;/p&gt;&#10;&lt;p&gt;It is available as PDF in English language.&lt;br&gt;A German paper book was published by the Galileo Verlag.&lt;/p&gt;&#10;&lt;p&gt;&lt;a href="https://www.laliluna.de/hibernate-3-jpa-book-ebook.html"&gt;Get more information.&lt;/a&gt;&lt;/p&gt;&#10;&#10;&lt;table cellspacing="0" cellpadding="4" border="1"&gt;&#10;&lt;col&gt;&#10;&lt;col&gt;&#10;&lt;tbody&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;&lt;b&gt;@javax.persistence.AttributeOverride(&lt;/b&gt;&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;Überschreibt die Spaltendefinition aus einer&#10;&#9;&#9;&#9;Oberklasse oder einem &lt;i&gt;Embedded Object.&lt;/i&gt;&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;name = "color", &#10;&#9;&#9;&#9;&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;Attribut der Klasse&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;column = @Column(name = "pullover_column")&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;Spaltendefinition; siehe &lt;i&gt;@Column &lt;/i&gt;Annotation&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;)&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;Beispiel: &lt;i&gt;de.laliluna.component.simple.Sheep&lt;/i&gt;&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr&gt;&#10;&lt;td valign="top" colspan="2"&gt;&#10;&#9;&#9;&#9;&lt;p lang="de-DE"&gt;&#10;&#9;&#9;&#9; @Embedded&lt;/p&gt;&#10;&#9;&#9;&#9;&lt;p lang="de-DE"&gt;&#10;&#9;&#9;&#9; @AttributeOverride(name&#10;&#9;&#9;&#9;= "color", column = @Column(name = "pullover_column"))&lt;/p&gt;&#10;&#9;&#9;&#9;&lt;p lang="de-DE"&gt;&#10;&#9;&#9;&#9; private&#10;&#9;&#9;&#9;Pullover pullover;&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;/tbody&gt;&#10;&lt;/table&gt;</description></item><item><title>@javax.persistence.AttributeOverrides</title><link>https://www.laliluna.de/articles/java-persistence-hibernate/javax.persistence.attributeoverrides.html</link><pubDate>Thu, 01 Jan 2009 00:00:00 +0000</pubDate><guid>https://www.laliluna.de/articles/java-persistence-hibernate/javax.persistence.attributeoverrides.html</guid><description>&lt;img align="right" src="https://www.laliluna.de/images/hibernate-buch/9783898426350-small.gif" alt="hibernate buch cover klein"&gt;&lt;p&gt;Extract of the annotation reference in the Hibernate Developer Guide by example&lt;/p&gt;&#10;&lt;p&gt;Extensive, easy-to-follow introduction to Hibernate 3 including complete working examples. Integration of Hibernate with other technologies like Spring, EJB3, Struts and JavaServer Faces (MyFaces) is explained.&lt;/p&gt;&#10;&lt;p&gt;It is available as PDF in English language.&lt;br&gt;A German paper book was published by the Galileo Verlag.&lt;/p&gt;&#10;&lt;p&gt;&lt;a href="https://www.laliluna.de/hibernate-3-jpa-book-ebook.html"&gt;Get more information.&lt;/a&gt;&lt;/p&gt;&#10;&lt;table cellspacing="0" cellpadding="4" border="1"&gt;&#10;&lt;col&gt;&#10;&lt;col&gt;&#10;&lt;tbody&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;&lt;b&gt;@javax.persistence.AttributeOverrides(&lt;/b&gt;&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;Überschreibt mehrere Spaltendefinitionen aus&#10;&#9;&#9;&#9;einer Oberklasse oder einem &lt;i&gt;Embedded Object.&lt;/i&gt;&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;&lt;a href="mailto:value%3d%7b@attributeoverride"&gt;value={@AttributeOverride&lt;/a&gt;(...),&#10;&#9;&#9;&#9;@AttributeOverride(...)}&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;Array von &lt;i&gt;@AttributeOverride&lt;/i&gt;&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;)&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr&gt;&#10;&lt;td valign="top" colspan="2"&gt;&#10;&#9;&#9;&#9;&lt;p lang="de-DE"&gt;@AttributeOverrides({@AttributeOverride(name&#10;&#9;&#9;&#9;= "color", &lt;br&gt;column = @Column(name =&#10;&#9;&#9;&#9;"pullover_column"))})&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;/tbody&gt;&#10;&lt;/table&gt;</description></item><item><title>@javax.persistence.Basic</title><link>https://www.laliluna.de/articles/java-persistence-hibernate/javax.persistence.basic.html</link><pubDate>Thu, 01 Jan 2009 00:00:00 +0000</pubDate><guid>https://www.laliluna.de/articles/java-persistence-hibernate/javax.persistence.basic.html</guid><description>&lt;img align="right" src="https://www.laliluna.de/images/hibernate-buch/9783898426350-small.gif" alt="hibernate buch cover klein"&gt;&lt;p&gt;Extract of the annotation reference in the Hibernate Developer Guide by example&lt;/p&gt;&#10;&lt;p&gt;Extensive, easy-to-follow introduction to Hibernate 3 including complete working examples. Integration of Hibernate with other technologies like Spring, EJB3, Struts and JavaServer Faces (MyFaces) is explained.&lt;/p&gt;&#10;&lt;p&gt;It is available as PDF in English language.&lt;br&gt;A German paper book was published by the Galileo Verlag.&lt;/p&gt;&#10;&lt;p&gt;&lt;a href="https://www.laliluna.de/hibernate-3-jpa-book-ebook.html"&gt;Get more information.&lt;/a&gt;&lt;/p&gt;&#10;&#10;&lt;table cellspacing="0" cellpadding="0" border="1"&gt;&#10;&lt;col&gt;&#10;&lt;col&gt;&#10;&lt;tbody&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;&lt;b&gt;@javax.persistence.Basic(&lt;/b&gt;&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;erlaubt für ein einzelnes Attribut festzulegen,&#10;&#9;&#9;&#9;ob es LAZY geladen werden soll&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;fetch=FetchType.EAGER, &#10;&#9;&#9;&#9;&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;Vorgabewert: EAGER; EAGER bedeutet das das Attribut&#10;&#9;&#9;&#9;sofort geladen wird, wenn das Objekt aus der Datenbank geholt&#10;&#9;&#9;&#9;wird. LAZY lädt ein Attribut erst, wenn auf das Feld&#10;&#9;&#9;&#9;zugegriffen wird. Das ist interessant für BLOB und CLOB&#10;&#9;&#9;&#9;Attribute. Eine Voraussetzung für LAZY Loading auf&#10;&#9;&#9;&#9;Attributebene ist &lt;b&gt;Bytecode instrumentation &lt;/b&gt;(siehe Kapitel&#10;&#9;&#9;&#9;17.1). &#10;&#9;&#9;&#9;&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;optional=true&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;Ein Hinweis für Hibernate, ob ein Attribut &lt;i&gt;Null&lt;/i&gt;&#10;&#9;&#9;&#9;sein kann.&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;)&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;/tbody&gt;&#10;&lt;/table&gt;</description></item><item><title>@javax.persistence.Column</title><link>https://www.laliluna.de/articles/java-persistence-hibernate/javax.persistence.column.html</link><pubDate>Thu, 01 Jan 2009 00:00:00 +0000</pubDate><guid>https://www.laliluna.de/articles/java-persistence-hibernate/javax.persistence.column.html</guid><description>&lt;img align="right" src="https://www.laliluna.de/images/hibernate-buch/9783898426350-small.gif" alt="hibernate buch cover klein"&gt;&lt;p&gt;Extract of the annotation reference in the Hibernate Developer Guide by example&lt;/p&gt;&#10;&lt;p&gt;Extensive, easy-to-follow introduction to Hibernate 3 including complete working examples. Integration of Hibernate with other technologies like Spring, EJB3, Struts and JavaServer Faces (MyFaces) is explained.&lt;/p&gt;&#10;&lt;p&gt;It is available as PDF in English language.&lt;br&gt;A German paper book was published by the Galileo Verlag.&lt;/p&gt;&#10;&lt;p&gt;&lt;a href="https://www.laliluna.de/hibernate-3-jpa-book-ebook.html"&gt;Get more information.&lt;/a&gt;&lt;/p&gt;&#10;&#10;&#10;&lt;table cellspacing="0" cellpadding="0" border="1"&gt;&#10;&lt;col&gt;&#10;&lt;col&gt;&#10;&lt;tbody&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;&lt;b&gt;@javax.persistence.Column(&lt;/b&gt;&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;kann verwendet werden, um die Tabellenspalte genau&#10;&#9;&#9;&#9;festzulegen&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;name="full_described_field", &#10;&#9;&#9;&#9;&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;Namen der Tabellenspalte&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;unique=false, &#10;&#9;&#9;&#9;&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;Wenn der Wert auf &lt;i&gt;true &lt;/i&gt;gesetzt&#10;&#9;&#9;&#9;wird, erzeugt Hibernate beim Erstellen der Spalte einen&#10;&#9;&#9;&#9;Unique-Key-Constraint.&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;nullable=true, &#10;&#9;&#9;&#9;&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;Wenn der Wert auf &lt;i&gt;false &lt;/i&gt;gesetzt&#10;&#9;&#9;&#9;wird, erzeugt Hibernate beim Erstellen der Spalte einen&#10;&#9;&#9;&#9;Not-Null-Constraint.&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;insertable=true, &#10;&#9;&#9;&#9;&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;legt fest, dass die Spalte bei einem &lt;i&gt;insert&lt;/i&gt;&#10;&#9;&#9;&#9;Befehl berücksichtigt wird&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;updatable=true, &#10;&#9;&#9;&#9;&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;legt fest, dass die Spalte bei einem &lt;i&gt;update&lt;/i&gt;&#10;&#9;&#9;&#9;Befehl berücksichtigt wird&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;columnDefinition="varchar(255)", &#10;&#9;&#9;&#9;&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;ermöglicht den SQL Typen der Spalte festzulegen &#10;&#9;&#9;&#9;&lt;/p&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;Vorgabewert: Der Wert wird anhand des Javatypen und&#10;&#9;&#9;&#9;der Annotations aus dem Dialekt der Hibernate Konfiguration&#10;&#9;&#9;&#9;ermittelt.&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;table="tableName2", &#10;&#9;&#9;&#9;&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;Tabellenname einer sekundären Tabelle; Wenn die&#10;&#9;&#9;&#9;Angabe fehlt, gehört die Spalte automatisch zur&#10;&#9;&#9;&#9;Primärtabelle. Siehe &lt;i&gt;@SecondaryTable&lt;/i&gt;&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;length=255, &#10;&#9;&#9;&#9;&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;Länge der Tabellenspalte; gilt nur für den&#10;&#9;&#9;&#9;Javatyp &lt;i&gt;String&lt;/i&gt;&lt;/p&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;Vorgabewert: 255&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;precision=0, &#10;&#9;&#9;&#9;&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;Nachkommastellen, wenn das Attribut eine Zahl ist;&#10;&#9;&#9;&#9;Der Vorgabewert wird aus dem Dialekt in der Hibernate&#10;&#9;&#9;&#9;Konfiguration ermittelt.&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;scale=0&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;Größe der Spalte, wenn das Attribut eine&#10;&#9;&#9;&#9;Zahl ist;&lt;/p&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;Der Vorgabewert wird aus dem Dialekt in der Hibernate&#10;&#9;&#9;&#9;Konfiguration ermittelt.&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;)&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;/tbody&gt;&#10;&lt;/table&gt;</description></item><item><title>@javax.persistence.DiscriminatorColumn</title><link>https://www.laliluna.de/articles/java-persistence-hibernate/javax.persistence.discriminatorcolumn.html</link><pubDate>Thu, 01 Jan 2009 00:00:00 +0000</pubDate><guid>https://www.laliluna.de/articles/java-persistence-hibernate/javax.persistence.discriminatorcolumn.html</guid><description>&lt;img align="right" src="https://www.laliluna.de/images/hibernate-buch/9783898426350-small.gif" alt="hibernate buch cover klein"&gt;&lt;p&gt;Extract of the annotation reference in the Hibernate Developer Guide by example&lt;/p&gt;&#10;&lt;p&gt;Extensive, easy-to-follow introduction to Hibernate 3 including complete working examples. Integration of Hibernate with other technologies like Spring, EJB3, Struts and JavaServer Faces (MyFaces) is explained.&lt;/p&gt;&#10;&lt;p&gt;It is available as PDF in English language.&lt;br&gt;A German paper book was published by the Galileo Verlag.&lt;/p&gt;&#10;&lt;p&gt;&lt;a href="https://www.laliluna.de/hibernate-3-jpa-book-ebook.html"&gt;Get more information.&lt;/a&gt;&lt;/p&gt;&#10;&#10;&lt;table cellspacing="0" cellpadding="4" border="1"&gt;&#10;&lt;col&gt;&#10;&lt;col&gt;&#10;&lt;tbody&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;&lt;b&gt;@javax.persistence. DiscriminatorColumn(&lt;/b&gt;&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;wird mit der Vererbungsstrategie&#10;&#9;&#9;&#9;&lt;i&gt;InheritanceType.SINGLE_TABLE &lt;/i&gt;verwendet;&#10;&#9;&#9;&#9;Da alle Klassen in einer Tabelle gespeichert werden, ist eine&#10;&#9;&#9;&#9;Spalte notwendig, die beschreibt welchen Klassentyp der Eintrag&#10;&#9;&#9;&#9;hat.&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;name = "plant_type",&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;Spaltenname der &lt;i&gt;Discriminator&lt;/i&gt; Spalte&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9; discriminatorType = DiscriminatorType.STRING, &#10;&#9;&#9;&#9;&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;legt fest, wie der &lt;i&gt;Discriminator&lt;/i&gt; Wert&#10;&#9;&#9;&#9;gespeichert wird; &lt;i&gt;STRING&lt;/i&gt; speichert den Klassennamen. &#10;&#9;&#9;&#9;mögliche Werte: STRING, CHAR, INTEGER&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;columnDefinition="varchar(31)", &#10;&#9;&#9;&#9;&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;optional, &lt;span lang="de-DE"&gt;SQL-Typ&#10;&#9;&#9;&#9;der &lt;/span&gt;&lt;span lang="de-DE"&gt;&lt;i&gt;Discriminator&lt;/i&gt;&lt;/span&gt;&lt;span lang="de-DE"&gt;&#10;&#9;&#9;&#9;Spalte; Der Vorgabewert wird anhand des discriminatorType aus dem&#10;&#9;&#9;&#9;konfigurierten Dialekt übernommen.&lt;/span&gt;&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;length=20&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;Länge der Spalte; Vorgabewert 31&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;)&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;Beispiel im Java-Package&#10;&#9;&#9;&#9;&lt;i&gt;de.laliluna.inheritance.singletable.*&lt;/i&gt;&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr&gt;&#10;&lt;td valign="top" colspan="2"&gt;&#10;&#9;&#9;&#9;&lt;p lang="de-DE"&gt;@DiscriminatorColumn(name&#10;&#9;&#9;&#9;= "plant_type", discriminatorType =&#10;&#9;&#9;&#9;DiscriminatorType.STRING, columnDefinition="varchar(31)",&#10;&#9;&#9;&#9;length=31)&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;/tbody&gt;&#10;&lt;/table&gt;</description></item><item><title>@javax.persistence.DiscriminatorValue</title><link>https://www.laliluna.de/articles/java-persistence-hibernate/javax.persistence.discriminatorvalue.html</link><pubDate>Thu, 01 Jan 2009 00:00:00 +0000</pubDate><guid>https://www.laliluna.de/articles/java-persistence-hibernate/javax.persistence.discriminatorvalue.html</guid><description>&lt;img align="right" src="https://www.laliluna.de/images/hibernate-buch/9783898426350-small.gif" alt="hibernate buch cover klein"&gt;&lt;p&gt;Extract of the annotation reference in the Hibernate Developer Guide by example&lt;/p&gt;&#10;&lt;p&gt;Extensive, easy-to-follow introduction to Hibernate 3 including complete working examples. Integration of Hibernate with other technologies like Spring, EJB3, Struts and JavaServer Faces (MyFaces) is explained.&lt;/p&gt;&#10;&lt;p&gt;It is available as PDF in English language.&lt;br&gt;A German paper book was published by the Galileo Verlag.&lt;/p&gt;&#10;&lt;p&gt;&lt;a href="https://www.laliluna.de/hibernate-3-jpa-book-ebook.html"&gt;Get more information.&lt;/a&gt;&lt;/p&gt;&#10;&#10;&lt;table cellspacing="0" cellpadding="4" border="1"&gt;&#10;&lt;col&gt;&#10;&lt;col&gt;&#10;&lt;tbody&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;&lt;b&gt;@javax.persistence. DiscriminatorValue(&lt;/b&gt;&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;optional, wird mit der Vererbungsstrategie&#10;&#9;&#9;&#9;&lt;i&gt;InheritanceType.SINGLE_TABLE &lt;/i&gt;verwendet;&#10;&#9;&#9;&#9;legt fest welcher Wert &lt;span lang="de-DE"&gt;für&#10;&#9;&#9;&#9;eine Klasse &lt;/span&gt;in&#10;&#9;&#9;&#9;die &lt;span lang="de-DE"&gt;&lt;i&gt;Discriminator&lt;/i&gt;&lt;/span&gt;&lt;span lang="de-DE"&gt;&#10;&#9;&#9;&#9;Spalte geschrieben wird; Vorgabewert: Klassenname&lt;/span&gt;&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;value="Flower"&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;ein eindeutiger Name&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;)&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr&gt;&#10;&lt;td valign="top" colspan="2"&gt;&#10;&#9;&#9;&#9;&lt;p lang="de-DE"&gt;@Entity&lt;/p&gt;&#10;&#9;&#9;&#9;&lt;p lang="de-DE"&gt;@DiscriminatorValue("Flower")&lt;/p&gt;&#10;&#9;&#9;&#9;&lt;p lang="de-DE"&gt;public&#10;&#9;&#9;&#9;class Flower extends Plant {&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;/tbody&gt;&#10;&lt;/table&gt;</description></item><item><title>@javax.persistence.Embeddable</title><link>https://www.laliluna.de/articles/java-persistence-hibernate/javax.persistence.embeddable.html</link><pubDate>Thu, 01 Jan 2009 00:00:00 +0000</pubDate><guid>https://www.laliluna.de/articles/java-persistence-hibernate/javax.persistence.embeddable.html</guid><description>&lt;img align="right" src="https://www.laliluna.de/images/hibernate-buch/9783898426350-small.gif" alt="hibernate buch cover klein"&gt;&lt;p&gt;Extract of the annotation reference in the Hibernate Developer Guide by example&lt;/p&gt;&#10;&lt;p&gt;Extensive, easy-to-follow introduction to Hibernate 3 including complete working examples. Integration of Hibernate with other technologies like Spring, EJB3, Struts and JavaServer Faces (MyFaces) is explained.&lt;/p&gt;&#10;&lt;p&gt;It is available as PDF in English language.&lt;br&gt;A German paper book was published by the Galileo Verlag.&lt;/p&gt;&#10;&lt;p&gt;&lt;a href="https://www.laliluna.de/hibernate-3-jpa-book-ebook.html"&gt;Get more information.&lt;/a&gt;&lt;/p&gt;&#10;&#10;&#10;&lt;table cellspacing="0" cellpadding="4" border="1"&gt;&#10;&lt;col&gt;&#10;&lt;col&gt;&#10;&lt;tbody&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;&lt;b&gt;@javax.persistence.Embeddable&lt;/b&gt;&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;legt fest, dass eine Klasse als Komponente&#10;&#9;&#9;&#9;eingebunden werden kann&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;Beispiel im Java-Package&#10;&#9;&#9;&#9;&lt;i&gt;de.laliluna.component.simple.Sheep&lt;/i&gt;&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;/tbody&gt;&#10;&lt;/table&gt;</description></item><item><title>@javax.persistence.Embedded</title><link>https://www.laliluna.de/articles/java-persistence-hibernate/javax.persistence.embedded.html</link><pubDate>Thu, 01 Jan 2009 00:00:00 +0000</pubDate><guid>https://www.laliluna.de/articles/java-persistence-hibernate/javax.persistence.embedded.html</guid><description>&lt;img align="right" src="https://www.laliluna.de/images/hibernate-buch/9783898426350-small.gif" alt="hibernate buch cover klein"&gt;&lt;p&gt;Extract of the annotation reference in the Hibernate Developer Guide by example&lt;/p&gt;&#10;&lt;p&gt;Extensive, easy-to-follow introduction to Hibernate 3 including complete working examples. Integration of Hibernate with other technologies like Spring, EJB3, Struts and JavaServer Faces (MyFaces) is explained.&lt;/p&gt;&#10;&lt;p&gt;It is available as PDF in English language.&lt;br&gt;A German paper book was published by the Galileo Verlag.&lt;/p&gt;&#10;&lt;p&gt;&lt;a href="https://www.laliluna.de/hibernate-3-jpa-book-ebook.html"&gt;Get more information.&lt;/a&gt;&lt;/p&gt;&#10;&#10;&lt;table cellspacing="0" cellpadding="4" border="1"&gt;&#10;&lt;col&gt;&#10;&lt;col&gt;&#10;&lt;tbody&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;&lt;b&gt;@javax.persistence.Embedded&lt;/b&gt;&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;legt fest, dass eine Klasse als Komponente&#10;&#9;&#9;&#9;eingebunden wird und in der gleichen Tabelle gespeichert wird&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;Hinweis: In einer neueren EJB Implementierung hat&#10;&#9;&#9;&#9;diese Annotation ein &lt;i&gt;Array&lt;/i&gt; von &lt;i&gt;@AttributeOverride&lt;/i&gt;.&#10;&#9;&#9;&#9;In Hibernate 3.3 stand diese Möglichkeit noch nicht zur&#10;&#9;&#9;&#9;Verfügung.&lt;/p&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;Beispiel im Java-Package&#10;&#9;&#9;&#9;&lt;i&gt;de.laliluna.component.simple&lt;/i&gt;.&lt;i&gt;Sheep&lt;/i&gt;&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr&gt;&#10;&lt;td valign="top" colspan="2"&gt;&#10;&#9;&#9;&#9;&lt;p lang="de-DE"&gt;@Embedded&lt;/p&gt;&#10;&#9;&#9;&#9;&lt;p lang="de-DE"&gt;@AttributeOverrides({@AttributeOverride(name&#10;&#9;&#9;&#9;= "color", column = @Column(name = "pullover_column"))})&lt;/p&gt;&#10;&#9;&#9;&#9;&lt;p lang="de-DE"&gt;private&#10;&#9;&#9;&#9;Pullover pullover; &#10;&#9;&#9;&#9;&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;/tbody&gt;&#10;&lt;/table&gt;</description></item><item><title>@javax.persistence.EmbeddedId</title><link>https://www.laliluna.de/articles/java-persistence-hibernate/javax.persistence.embeddedid.html</link><pubDate>Thu, 01 Jan 2009 00:00:00 +0000</pubDate><guid>https://www.laliluna.de/articles/java-persistence-hibernate/javax.persistence.embeddedid.html</guid><description>&lt;img align="right" src="https://www.laliluna.de/images/hibernate-buch/9783898426350-small.gif" alt="hibernate buch cover klein"&gt;&lt;p&gt;Extract of the annotation reference in the Hibernate Developer Guide by example&lt;/p&gt;&#10;&lt;p&gt;Extensive, easy-to-follow introduction to Hibernate 3 including complete working examples. Integration of Hibernate with other technologies like Spring, EJB3, Struts and JavaServer Faces (MyFaces) is explained.&lt;/p&gt;&#10;&lt;p&gt;It is available as PDF in English language.&lt;br&gt;A German paper book was published by the Galileo Verlag.&lt;/p&gt;&#10;&lt;p&gt;&lt;a href="https://www.laliluna.de/hibernate-3-jpa-book-ebook.html"&gt;Get more information.&lt;/a&gt;&lt;/p&gt;&#10;&#10;&lt;table cellspacing="0" cellpadding="4" border="1"&gt;&#10;&lt;col&gt;&#10;&lt;col&gt;&#10;&lt;tbody&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;&lt;b&gt;@javax.persistence.EmbeddedId&lt;/b&gt;&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;definiert die Klassen, welche den zusammengesetzten&#10;&#9;&#9;&#9;Primärschlüssel enthält; Der Unterschied zu&#10;&#9;&#9;&#9;&lt;i&gt;@IdClass&lt;/i&gt; ist, dass die Attribute nur in der&#10;&#9;&#9;&#9;Primärschlüsselklasse vorhanden sind.&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr&gt;&#10;&lt;td valign="top" colspan="2"&gt;&#10;&#9;&#9;&#9;&lt;p lang="de-DE"&gt;@Entity&lt;/p&gt;&#10;&#9;&#9;&#9;&lt;p lang="de-DE"&gt;public&#10;&#9;&#9;&#9;class BoxTurtle implements Serializable {&lt;/p&gt;&#10;&#9;&#9;&#9;&lt;p lang="de-DE"&gt;&#10;&#9;&#9;&#9; @EmbeddedId&lt;/p&gt;&#10;&#9;&#9;&#9;&lt;p lang="de-DE"&gt;&#10;&#9;&#9;&#9; private&#10;&#9;&#9;&#9;BoxTurtleId id;&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;/tbody&gt;&#10;&lt;/table&gt;</description></item><item><title>@javax.persistence.Entity</title><link>https://www.laliluna.de/articles/java-persistence-hibernate/javax.persistence.entity.html</link><pubDate>Thu, 01 Jan 2009 00:00:00 +0000</pubDate><guid>https://www.laliluna.de/articles/java-persistence-hibernate/javax.persistence.entity.html</guid><description>&lt;img align="right" src="https://www.laliluna.de/images/hibernate-buch/9783898426350-small.gif" alt="hibernate buch cover klein"&gt;&lt;p&gt;Extract of the annotation reference in the Hibernate Developer Guide by example&lt;/p&gt;&#10;&lt;p&gt;Extensive, easy-to-follow introduction to Hibernate 3 including complete working examples. Integration of Hibernate with other technologies like Spring, EJB3, Struts and JavaServer Faces (MyFaces) is explained.&lt;/p&gt;&#10;&lt;p&gt;It is available as PDF in English language.&lt;br&gt;A German paper book was published by the Galileo Verlag.&lt;/p&gt;&#10;&lt;p&gt;&lt;a href="https://www.laliluna.de/hibernate-3-jpa-book-ebook.html"&gt;Get more information.&lt;/a&gt;&lt;/p&gt;&#10;&lt;table cellspacing="0" cellpadding="0" border="1"&gt;&#10;&lt;col&gt;&#10;&lt;col&gt;&#10;&lt;tbody&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;&lt;b&gt;@javax.persistence.Entity(&lt;/b&gt;&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;legt fest, dass eine Klasse eine gemappte Hibernate&#10;&#9;&#9;&#9;Entity ist&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;name="EntityName"&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;optional, Name der in Abfragen verwendet wird; &#10;&#9;&#9;&#9;&lt;/p&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;Vorgabe ist der Klassenname.&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;)&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr&gt;&#10;&lt;td valign="top" colspan="2"&gt;&#10;&#9;&#9;&#9;&lt;p lang="de-DE"&gt;@Entity&lt;/p&gt;&#10;&#9;&#9;&#9;&lt;p lang="de-DE"&gt;public&#10;&#9;&#9;&#9;class Tiger implements Serializable {&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;/tbody&gt;&#10;&lt;/table&gt;</description></item><item><title>@javax.persistence.Enumerated</title><link>https://www.laliluna.de/articles/java-persistence-hibernate/javax.persistence.enumerated.html</link><pubDate>Thu, 01 Jan 2009 00:00:00 +0000</pubDate><guid>https://www.laliluna.de/articles/java-persistence-hibernate/javax.persistence.enumerated.html</guid><description>&lt;img align="right" src="https://www.laliluna.de/images/hibernate-buch/9783898426350-small.gif" alt="hibernate buch cover klein"&gt;&lt;p&gt;Extract of the annotation reference in the Hibernate Developer Guide by example&lt;/p&gt;&#10;&lt;p&gt;Extensive, easy-to-follow introduction to Hibernate 3 including complete working examples. Integration of Hibernate with other technologies like Spring, EJB3, Struts and JavaServer Faces (MyFaces) is explained.&lt;/p&gt;&#10;&lt;p&gt;It is available as PDF in English language.&lt;br&gt;A German paper book was published by the Galileo Verlag.&lt;/p&gt;&#10;&lt;p&gt;&lt;a href="https://www.laliluna.de/hibernate-3-jpa-book-ebook.html"&gt;Get more information.&lt;/a&gt;&lt;/p&gt;&#10;&#10;&lt;table cellspacing="0" cellpadding="4" border="1"&gt;&#10;&lt;col&gt;&#10;&lt;col&gt;&#10;&lt;tbody&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;&lt;b&gt;@javax.persistence.Enumerated(&lt;/b&gt;&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;beschreibt ein Attribut als &lt;i&gt;Enum&lt;/i&gt; - Typen&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;value = EnumType.STRING&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;mögliche Werte sind: &lt;i&gt;EnumType.STRING&lt;/i&gt; oder&#10;&#9;&#9;&#9;&lt;i&gt;EnumType.ORDINAL&lt;/i&gt;&lt;/p&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;&lt;i&gt;STRING&lt;/i&gt; bewirkt, dass Hibernate eine&#10;&#9;&#9;&#9;Tabellenspalte vom Typ &lt;i&gt;char&lt;/i&gt; erzeugt, die den Enum-Typen als&#10;&#9;&#9;&#9;Zeichenfolge enthält: ForestType.JUNGLE = Spaltenwert &lt;i&gt;JUNGLE.&lt;/i&gt;&lt;/p&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;&lt;i&gt;ORDINAL&lt;/i&gt; bewirkt, dass Hibernate eine&#10;&#9;&#9;&#9;Tabellenspalte vom Typ &lt;i&gt;Integer&lt;/i&gt; erzeugt. für jeden Typ&#10;&#9;&#9;&#9;wird eine Zahl gespeichert. Bei diesem Ansatz können Sie neue&#10;&#9;&#9;&#9;Typen nur am Ende einfügen, da sonst die Zuordnung von Zahl&#10;&#9;&#9;&#9;zu Typ durcheinander.&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;)&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr&gt;&#10;&lt;td valign="top" colspan="2"&gt;&#10;&#9;&#9;&#9;&lt;p lang="de-DE"&gt;&#10;&#9;&#9;&#9; public&#10;&#9;&#9;&#9;enum ForestType {JUNGLE, FOREST, NORDIC}&lt;/p&gt;&#10;&#9;&#9;&#9;&lt;p lang="de-DE"&gt;&#10;&#9;&#9;&#9; @Enumerated(EnumType.STRING)&lt;/p&gt;&#10;&#9;&#9;&#9;&lt;p lang="de-DE"&gt;&#10;&#9;&#9;&#9; private&#10;&#9;&#9;&#9;ForestType forestType;&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;/tbody&gt;&#10;&lt;/table&gt;</description></item><item><title>@javax.persistence.GeneratedValue</title><link>https://www.laliluna.de/articles/java-persistence-hibernate/javax.persistence.generatedvalue.html</link><pubDate>Thu, 01 Jan 2009 00:00:00 +0000</pubDate><guid>https://www.laliluna.de/articles/java-persistence-hibernate/javax.persistence.generatedvalue.html</guid><description>&lt;img align="right" src="https://www.laliluna.de/images/hibernate-buch/9783898426350-small.gif" alt="hibernate buch cover klein"&gt;&lt;p&gt;Extract of the annotation reference in the Hibernate Developer Guide by example&lt;/p&gt;&#10;&lt;p&gt;Extensive, easy-to-follow introduction to Hibernate 3 including complete working examples. Integration of Hibernate with other technologies like Spring, EJB3, Struts and JavaServer Faces (MyFaces) is explained.&lt;/p&gt;&#10;&lt;p&gt;It is available as PDF in English language.&lt;br&gt;A German paper book was published by the Galileo Verlag.&lt;/p&gt;&#10;&lt;p&gt;&lt;a href="https://www.laliluna.de/hibernate-3-jpa-book-ebook.html"&gt;Get more information.&lt;/a&gt;&lt;/p&gt;&#10;&#10;&lt;table cellspacing="0" cellpadding="0" border="1"&gt;&#10;&lt;col&gt;&#10;&lt;col&gt;&#10;&lt;tbody&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;&lt;b&gt;@javax.persistence.GeneratedValue(&lt;/b&gt;&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;beschreibt, dass die Id erzeugt wird; es gibt&#10;&#9;&#9;&#9;unterschiedliche Strategien, um Primärschlüssel erzeugen&#10;&#9;&#9;&#9;zu lassen.&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;strategy=GenerationType.SEQUENCE, &#10;&#9;&#9;&#9;&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;Vorgabe: GenerationType.AUTO (wählt abhängig&#10;&#9;&#9;&#9;von der Datenbank eine Strategie aus)&lt;/p&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;GenerationType.SEQUENCE (verwendet eine Sequenz,&#10;&#9;&#9;&#9;Vorgabewert für den Sequenznamen ist &lt;i&gt;hibernate_sequence&lt;/i&gt;,&#10;&#9;&#9;&#9;Oracle, PostgreSql und andere)&lt;/p&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;GenerationType.TABLE (speichert den letzten Wert in&#10;&#9;&#9;&#9;einer Datebanktabelle (eignet sich für alle Datenbanken)&lt;/p&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;GenerationType.IDENTITY (spezieller Spaltentyp; MS&#10;&#9;&#9;&#9;SQL und andere)&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;generator="generatorName"&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;optional: referenziert einen Generator; ein Generator&#10;&#9;&#9;&#9; erlaubt präziser festzulegen, wie die Ids erzeugt werden&lt;/p&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;Vorgabewert: Dieser hängt von der Strategie ab.&#10;&#9;&#9;&#9;für eine Sequenz wird ein Generator verwenden, der eine&#10;&#9;&#9;&#9;Sequenz mit dem Namen &lt;i&gt;hibernate_sequence&lt;/i&gt; benutzt&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;)&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr&gt;&#10;&lt;td valign="top" colspan="2"&gt;&#10;&#9;&#9;&#9;&lt;p lang="de-DE"&gt;@Entity&lt;/p&gt;&#10;&#9;&#9;&#9;&lt;p lang="de-DE"&gt;public&#10;&#9;&#9;&#9;class Cheetah implements Serializable {&lt;/p&gt;&#10;&#9;&#9;&#9;&lt;p lang="de-DE"&gt;&#10;&#9;&#9;&#9; @Id&lt;/p&gt;&#10;&#9;&#9;&#9;&lt;p lang="de-DE"&gt;&#10;&#9;&#9;&#9; @GeneratedValue(strategy=GenerationType.AUTO)&lt;/p&gt;&#10;&#9;&#9;&#9;&lt;p lang="de-DE"&gt;&#10;&#9;&#9;&#9; private&#10;&#9;&#9;&#9;Integer id;&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr&gt;&#10;&lt;td valign="top" colspan="2"&gt;&#10;&#9;&#9;&#9;&lt;p lang="de-DE"&gt;@Entity&lt;/p&gt;&#10;&#9;&#9;&#9;&lt;p lang="de-DE"&gt;public&#10;&#9;&#9;&#9;class Tiger implements Serializable {&lt;/p&gt;&#10;&#9;&#9;&#9;&lt;p lang="de-DE"&gt;&#10;&#9;&#9;&#9; @Id&lt;/p&gt;&#10;&#9;&#9;&#9;&lt;p lang="de-DE"&gt;&#9;&#9;&#10;&#9;&#9;&#9;@TableGenerator(name = "puma_gen", table="primary_keys")&lt;/p&gt;&#10;&#9;&#9;&#9;&lt;p lang="de-DE"&gt;&#10;&#9;&#9;&#9; @GeneratedValue(strategy&#10;&#9;&#9;&#9;= GenerationType.TABLE, generator = "puma_gen")&lt;/p&gt;&#10;&#9;&#9;&#9;&lt;p lang="de-DE"&gt;&#10;&#9;&#9;&#9; private&#10;&#9;&#9;&#9;Integer id;&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;/tbody&gt;&#10;&lt;/table&gt;</description></item><item><title>@javax.persistence.Id</title><link>https://www.laliluna.de/articles/java-persistence-hibernate/javax.persistence.id.html</link><pubDate>Thu, 01 Jan 2009 00:00:00 +0000</pubDate><guid>https://www.laliluna.de/articles/java-persistence-hibernate/javax.persistence.id.html</guid><description>&lt;img align="right" src="https://www.laliluna.de/images/hibernate-buch/9783898426350-small.gif" alt="hibernate buch cover klein"&gt;&lt;p&gt;Extract of the annotation reference in the Hibernate Developer Guide by example&lt;/p&gt;&#10;&lt;p&gt;Extensive, easy-to-follow introduction to Hibernate 3 including complete working examples. Integration of Hibernate with other technologies like Spring, EJB3, Struts and JavaServer Faces (MyFaces) is explained.&lt;/p&gt;&#10;&lt;p&gt;It is available as PDF in English language.&lt;br&gt;A German paper book was published by the Galileo Verlag.&lt;/p&gt;&#10;&lt;p&gt;&lt;a href="https://www.laliluna.de/hibernate-3-jpa-book-ebook.html"&gt;Get more information.&lt;/a&gt;&lt;/p&gt;&#10;&#10;&lt;table cellspacing="0" cellpadding="4" border="1"&gt;&#10;&lt;col&gt;&#10;&lt;col&gt;&#10;&lt;tbody&gt;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;&lt;b&gt;@javax.persistence.Id&lt;/b&gt;&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;legt fest, dass ein Attribut zum Primärschlüssel&#10;&#9;&#9;&#9;gehört; Die Annotation wird bei zusammengesetzten Ids vor&#10;&#9;&#9;&#9;alle Attribute geschrieben.&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&lt;/tbody&gt;&#10;&lt;/table&gt;</description></item><item><title>@javax.persistence.IdClass</title><link>https://www.laliluna.de/articles/java-persistence-hibernate/javax.persistence.idclass.html</link><pubDate>Thu, 01 Jan 2009 00:00:00 +0000</pubDate><guid>https://www.laliluna.de/articles/java-persistence-hibernate/javax.persistence.idclass.html</guid><description>&lt;img align="right" src="https://www.laliluna.de/images/hibernate-buch/9783898426350-small.gif" alt="hibernate buch cover klein"&gt;&lt;p&gt;Extract of the annotation reference in the Hibernate Developer Guide by example&lt;/p&gt;&#10;&lt;p&gt;Extensive, easy-to-follow introduction to Hibernate 3 including complete working examples. Integration of Hibernate with other technologies like Spring, EJB3, Struts and JavaServer Faces (MyFaces) is explained.&lt;/p&gt;&#10;&lt;p&gt;It is available as PDF in English language.&lt;br&gt;A German paper book was published by the Galileo Verlag.&lt;/p&gt;&#10;&lt;p&gt;&lt;a href="https://www.laliluna.de/hibernate-3-jpa-book-ebook.html"&gt;Get more information.&lt;/a&gt;&lt;/p&gt;&#10;&#10;&#10;&lt;table cellspacing="0" cellpadding="4" border="1"&gt;&#10;&lt;col&gt;&#10;&lt;col&gt;&#10;&lt;tbody&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;&lt;b&gt;@javax.persistence.IdClass(&lt;/b&gt;&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;legt die Klasse fest, die einen zusammengesetzten&#10;&#9;&#9;&#9;Primärschlüssel speichert&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;value=SpottedTurtleId.class&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;den Klassennamen der Primärschlüsselklasse&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;)&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr&gt;&#10;&lt;td valign="top" colspan="2"&gt;&#10;&#9;&#9;&#9;&lt;p lang="de-DE"&gt;@IdClass(SpottedTurtleId.class)&lt;/p&gt;&#10;&#9;&#9;&#9;&lt;p lang="de-DE"&gt;public&#10;&#9;&#9;&#9;class SpottedTurtle implements Serializable {&lt;/p&gt;&#10;&#9;&#9;&#9;&lt;p lang="de-DE"&gt;&#10;&#9;&#9;&#9; @Id&lt;/p&gt;&#10;&#9;&#9;&#9;&lt;p lang="de-DE"&gt;&#10;&#9;&#9;&#9; private&#10;&#9;&#9;&#9;String location;&lt;/p&gt;&#10;&#9;&#9;&#9;&lt;p lang="de-DE"&gt;&#10;&#9;&#9;&#9; @Id&lt;/p&gt;&#10;&#9;&#9;&#9;&lt;p lang="de-DE"&gt;&#10;&#9;&#9;&#9; private&#10;&#9;&#9;&#9;String favoriteSalad;&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;/tbody&gt;&#10;&lt;/table&gt;</description></item><item><title>@javax.persistence.Inheritance</title><link>https://www.laliluna.de/articles/java-persistence-hibernate/javax.persistence.inheritance.html</link><pubDate>Thu, 01 Jan 2009 00:00:00 +0000</pubDate><guid>https://www.laliluna.de/articles/java-persistence-hibernate/javax.persistence.inheritance.html</guid><description>&lt;img align="right" src="https://www.laliluna.de/images/hibernate-buch/9783898426350-small.gif" alt="hibernate buch cover klein"&gt;&lt;p&gt;Extract of the annotation reference in the Hibernate Developer Guide by example&lt;/p&gt;&#10;&lt;p&gt;Extensive, easy-to-follow introduction to Hibernate 3 including complete working examples. Integration of Hibernate with other technologies like Spring, EJB3, Struts and JavaServer Faces (MyFaces) is explained.&lt;/p&gt;&#10;&lt;p&gt;It is available as PDF in English language.&lt;br&gt;A German paper book was published by the Galileo Verlag.&lt;/p&gt;&#10;&lt;p&gt;&lt;a href="https://www.laliluna.de/hibernate-3-jpa-book-ebook.html"&gt;Get more information.&lt;/a&gt;&lt;/p&gt;&#10;&#10;&lt;table cellspacing="0" cellpadding="4" border="1"&gt;&#10;&lt;col&gt;&#10;&lt;col&gt;&#10;&lt;tbody&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;&lt;b&gt;@javax.persistence.Inheritance(&lt;/b&gt;&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;legt eine Klasse als Oberklasse einer&#10;&#9;&#9;&#9;Vererbungshierarchie fest; Die Vererbungshierarchie kann in einer&#10;&#9;&#9;&#9;oder in mehreren Tabellen gespeichert werden.&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;strategy = InheritanceType.SINGLE_TABLE&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;legt die Strategie für das Mapping fest:&lt;/p&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;SINGLE_TABLE = Alle Spalten der Ober- und&#10;&#9;&#9;&#9;Unterklassen werden in einer Tabelle gespeichert.&lt;/p&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;TABLE_PER_CLASS = Die Oberklasse und jede Unterklasse&#10;&#9;&#9;&#9;haben eine eigene Tabelle. Geerbte Spalten sind in allen Tabellen&#10;&#9;&#9;&#9;enthalten.&lt;/p&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;JOINED = Die Oberklasse und jede Unterklasse haben&#10;&#9;&#9;&#9;eine eigene Tabelle. Geerbte Spalten sind nur in der Tabelle der&#10;&#9;&#9;&#9;Oberklasse enthalten.&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;)&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;Beispiel im Java-Package &lt;i&gt;de.laliluna.inheritance.*&lt;/i&gt;&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr&gt;&#10;&lt;td valign="top" colspan="2"&gt;&#10;&#9;&#9;&#9;&lt;p lang="de-DE"&gt;@Entity&lt;/p&gt;&#10;&#9;&#9;&#9;&lt;p lang="de-DE"&gt;@Inheritance(strategy&#10;&#9;&#9;&#9;= InheritanceType.SINGLE_TABLE)&lt;/p&gt;&#10;&#9;&#9;&#9;&lt;p lang="de-DE"&gt;@DiscriminatorColumn(name&#10;&#9;&#9;&#9;= "plant_type", discriminatorType =&#10;&#9;&#9;&#9;DiscriminatorType.STRING)&lt;/p&gt;&#10;&#9;&#9;&#9;&lt;p lang="de-DE"&gt;public&#10;&#9;&#9;&#9;class Plant implements Serializable {&lt;/p&gt;&#10;&#9;&#9;&#9;&lt;p lang="de-DE"&gt;@Entity&lt;/p&gt;&#10;&#9;&#9;&#9;&lt;p lang="de-DE"&gt;public&#10;&#9;&#9;&#9;class Flower extends Plant {&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;/tbody&gt;&#10;&lt;/table&gt;</description></item><item><title>@javax.persistence.Lob</title><link>https://www.laliluna.de/articles/java-persistence-hibernate/javax.persistence.lob.html</link><pubDate>Thu, 01 Jan 2009 00:00:00 +0000</pubDate><guid>https://www.laliluna.de/articles/java-persistence-hibernate/javax.persistence.lob.html</guid><description>&lt;img align="right" src="https://www.laliluna.de/images/hibernate-buch/9783898426350-small.gif" alt="hibernate buch cover klein"&gt;&lt;p&gt;Extract of the annotation reference in the Hibernate Developer Guide by example&lt;/p&gt;&#10;&lt;p&gt;Extensive, easy-to-follow introduction to Hibernate 3 including complete working examples. Integration of Hibernate with other technologies like Spring, EJB3, Struts and JavaServer Faces (MyFaces) is explained.&lt;/p&gt;&#10;&lt;p&gt;It is available as PDF in English language.&lt;br&gt;A German paper book was published by the Galileo Verlag.&lt;/p&gt;&#10;&lt;p&gt;&lt;a href="https://www.laliluna.de/hibernate-3-jpa-book-ebook.html"&gt;Get more information.&lt;/a&gt;&lt;/p&gt;&#10;&#10;&lt;table cellspacing="0" cellpadding="0" border="1"&gt;&#10;&lt;col&gt;&#10;&lt;col&gt;&#10;&lt;tbody&gt;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;&lt;b&gt;@javax.persistence.Lob&lt;/b&gt;&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;definiert, dass ein Attribut ein &lt;i&gt;Large object type&#10;&#9;&#9;&#9;&lt;/i&gt;ist; abhängig vom&#10;&#9;&#9;&#9;Javatypen, wird ein CLOB (&lt;i&gt;character large object&lt;/i&gt;) oder ein&#10;&#9;&#9;&#9;BLOB (&lt;i&gt;binary large object&lt;/i&gt;) verwendet;&lt;br&gt;Wichtige Hinweise&#10;&#9;&#9;&#9;insbesondere zu Oracle gibt es in Kapitel 17.11 &#10;&#9;&#9;&#9;&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&lt;/tbody&gt;&#10;&lt;/table&gt;</description></item><item><title>@javax.persistence.ManyToMany</title><link>https://www.laliluna.de/articles/java-persistence-hibernate/javax.persistence.manytomany.html</link><pubDate>Thu, 01 Jan 2009 00:00:00 +0000</pubDate><guid>https://www.laliluna.de/articles/java-persistence-hibernate/javax.persistence.manytomany.html</guid><description>&lt;img align="right" src="https://www.laliluna.de/images/hibernate-buch/9783898426350-small.gif" alt="hibernate buch cover klein"&gt;&lt;p&gt;Extract of the annotation reference in the Hibernate Developer Guide by example&lt;/p&gt;&#10;&lt;p&gt;Extensive, easy-to-follow introduction to Hibernate 3 including complete working examples. Integration of Hibernate with other technologies like Spring, EJB3, Struts and JavaServer Faces (MyFaces) is explained.&lt;/p&gt;&#10;&lt;p&gt;It is available as PDF in English language.&lt;br&gt;A German paper book was published by the Galileo Verlag.&lt;/p&gt;&#10;&lt;p&gt;&lt;a href="https://www.laliluna.de/hibernate-3-jpa-book-ebook.html"&gt;Get more information.&lt;/a&gt;&lt;/p&gt;&#10;&#10;&lt;table cellspacing="0" cellpadding="4" border="1"&gt;&#10;&lt;col&gt;&#10;&lt;col&gt;&#10;&lt;tbody&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;&lt;b&gt;@javax.persistence.ManyToMany(&lt;/b&gt;&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;definiert eine m:n Beziehung&lt;/p&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;Beispiel im Package &lt;i&gt;de.laliluna.relation.many2many&lt;/i&gt;&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;targetEntity = Invoice1.class, &#10;&#9;&#9;&#9;&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;definiert die andere Seite der Beziehung; die Angabe&#10;&#9;&#9;&#9;ist gewöhnlich nicht erforderlich, da die andere Seite der&#10;&#9;&#9;&#9;Beziehung von Hibernate aus dem generischen Javatypen erraten&#10;&#9;&#9;&#9;wird.&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;cascade = {CascadeType.ALL}, &#10;&#9;&#9;&#9;&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;&lt;i&gt;Array&lt;/i&gt; von &lt;i&gt;CascadeType&lt;/i&gt;   siehe Kapitel&#10;&#9;&#9;&#9;12.5.4&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;fetch=FetchType.EAGER, &#10;&#9;&#9;&#9;&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;legt fest, ob die andere Seite der Beziehung erst&#10;&#9;&#9;&#9;beim Zugriff (&lt;i&gt;LAZY&lt;/i&gt;) oder sofort geladen wird (&lt;i&gt;EAGER&lt;/i&gt;);&#10;&#9;&#9;&#9;für m:n Beziehungen ist der Vorgabewert &lt;i&gt;LAZY&lt;/i&gt;.&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;mappedBy="otherSideProperty"&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;legt fest, dass in einer bidirektionalen Beziehung,&#10;&#9;&#9;&#9;die andere Seite die Beziehung verwaltet&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;&lt;b&gt;)&lt;/b&gt;&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr&gt;&#10;&lt;td valign="top" colspan="2"&gt;&#10;&#9;&#9;&#9;&lt;p lang="de-DE"&gt;&#9;@ManyToMany(cascade&#10;&#9;&#9;&#9;= CascadeType.ALL)&lt;/p&gt;&#10;&#9;&#9;&#9;&lt;p lang="de-DE"&gt;&#9;@JoinTable(name&#10;&#9;&#9;&#9;= "concert_visitor_2", joinColumns = { @JoinColumn(name&#10;&#9;&#9;&#9;= "concert_id") }, inverseJoinColumns = {&#10;&#9;&#9;&#9;@JoinColumn(name = "visitor_id") })&lt;/p&gt;&#10;&#9;&#9;&#9;&lt;p lang="de-DE"&gt;&#9;private&#10;&#9;&#9;&#9;List&amp;lt;Visitor2&amp;gt; visitors = new ArrayList&amp;lt;Visitor2&amp;gt;();&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;/tbody&gt;&#10;&lt;/table&gt;</description></item><item><title>@javax.persistence.ManyToOne</title><link>https://www.laliluna.de/articles/java-persistence-hibernate/javax.persistence.manytoone.html</link><pubDate>Thu, 01 Jan 2009 00:00:00 +0000</pubDate><guid>https://www.laliluna.de/articles/java-persistence-hibernate/javax.persistence.manytoone.html</guid><description>&lt;img align="right" src="https://www.laliluna.de/images/hibernate-buch/9783898426350-small.gif" alt="hibernate buch cover klein"&gt;&lt;p&gt;Extract of the annotation reference in the Hibernate Developer Guide by example&lt;/p&gt;&#10;&lt;p&gt;Extensive, easy-to-follow introduction to Hibernate 3 including complete working examples. Integration of Hibernate with other technologies like Spring, EJB3, Struts and JavaServer Faces (MyFaces) is explained.&lt;/p&gt;&#10;&lt;p&gt;It is available as PDF in English language.&lt;br&gt;A German paper book was published by the Galileo Verlag.&lt;/p&gt;&#10;&lt;p&gt;&lt;a href="https://www.laliluna.de/hibernate-3-jpa-book-ebook.html"&gt;Get more information.&lt;/a&gt;&lt;/p&gt;&#10;&#10;&lt;table cellspacing="0" cellpadding="4" border="1"&gt;&#10;&lt;col&gt;&#10;&lt;col&gt;&#10;&lt;tbody&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;&lt;b&gt;@javax.persistence.ManyToOne(&lt;/b&gt;&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;definiert eine n:1 Beziehung&lt;/p&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;Beispiel im Package de.laliluna.relation.one2many&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;targetEntity = Invoice1.class, &#10;&#9;&#9;&#9;&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;definiert die andere Seite der Beziehung; die Angabe&#10;&#9;&#9;&#9;ist gewöhnlich nicht erforderlich, da die andere Seite der&#10;&#9;&#9;&#9;Beziehung von Hibernate aus dem Javatypen erraten wird.&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;cascade = {CascadeType.ALL}, &#10;&#9;&#9;&#9;&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;&lt;i&gt;Array&lt;/i&gt; von &lt;i&gt;CascadeType&lt;/i&gt;   siehe Kapitel&#10;&#9;&#9;&#9;12.5.4&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;fetch=FetchType.EAGER, &#10;&#9;&#9;&#9;&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;legt fest, ob die andere Seite der Beziehung erst&#10;&#9;&#9;&#9;beim Zugriff (&lt;i&gt;LAZY&lt;/i&gt;) oder sofort geladen wird (&lt;i&gt;EAGER&lt;/i&gt;);&#10;&#9;&#9;&#9;für n:1 Beziehungen ist der Vorgabewert &lt;i&gt;EAGER&lt;/i&gt;.&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;optional=true, &#10;&#9;&#9;&#9;&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;Ist der Wert &lt;i&gt;false&lt;/i&gt;&#10;&#9;&#9;&#9;erzeugt Hibernate beim Erstellen der Tabelle einen&#10;&#9;&#9;&#9;Not-Null-Constraint. Wenn Cascading mit der Einstellung&#10;&#9;&#9;&#9;DELETE-ORPHAN konfiguriert ist, wird die andere Klasse gelöscht,&#10;&#9;&#9;&#9;wenn die Beziehung getrennt wird.&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;)&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr&gt;&#10;&lt;td valign="top" colspan="2"&gt;&#10;&#9;&#9;&#9;&lt;p lang="de-DE"&gt;&#9;@ManyToOne&lt;/p&gt;&#10;&#9;&#9;&#9;&lt;p lang="de-DE"&gt;&#9;@JoinColumn(name&#10;&#9;&#9;&#9;= "club_id", nullable = false)&lt;/p&gt;&#10;&#9;&#9;&#9;&lt;p lang="de-DE"&gt;&#9;private&#10;&#9;&#9;&#9;JavaClub3 club;&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;/tbody&gt;&#10;&lt;/table&gt;</description></item><item><title>@javax.persistence.MappedSuperclass</title><link>https://www.laliluna.de/articles/java-persistence-hibernate/javax.persistence.mappedsuperclass.html</link><pubDate>Thu, 01 Jan 2009 00:00:00 +0000</pubDate><guid>https://www.laliluna.de/articles/java-persistence-hibernate/javax.persistence.mappedsuperclass.html</guid><description>&lt;img align="right" src="https://www.laliluna.de/images/hibernate-buch/9783898426350-small.gif" alt="hibernate buch cover klein"&gt;&lt;p&gt;Extract of the annotation reference in the Hibernate Developer Guide by example&lt;/p&gt;&#10;&lt;p&gt;Extensive, easy-to-follow introduction to Hibernate 3 including complete working examples. Integration of Hibernate with other technologies like Spring, EJB3, Struts and JavaServer Faces (MyFaces) is explained.&lt;/p&gt;&#10;&lt;p&gt;It is available as PDF in English language.&lt;br&gt;A German paper book was published by the Galileo Verlag.&lt;/p&gt;&#10;&lt;p&gt;&lt;a href="https://www.laliluna.de/hibernate-3-jpa-book-ebook.html"&gt;Get more information.&lt;/a&gt;&lt;/p&gt;&#10;&#10;&#10;&lt;table cellspacing="0" cellpadding="4" border="1"&gt;&#10;&lt;col&gt;&#10;&lt;col&gt;&#10;&lt;tbody&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;&lt;b&gt;@javax.persistence.MappedSuperclass&lt;/b&gt;&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;definiert die Oberklasse einer Vererbungshierarchie,&#10;&#9;&#9;&#9;in der diese nicht selber gespeichert oder verwendet wird; Die&#10;&#9;&#9;&#9;Unterklassen speichern selbstverständlich die geerbten&#10;&#9;&#9;&#9;Attribute.&lt;/p&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;Beispiel im Java-Package&#10;&#9;&#9;&#9;&lt;i&gt;de.laliluna.inheritance.mappedsuperclass.* &lt;/i&gt;&#10;&#9;&#9;&#9;&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr&gt;&#10;&lt;td valign="top" colspan="2"&gt;&#10;&#9;&#9;&#9;&lt;p lang="de-DE"&gt;@MappedSuperclass&lt;/p&gt;&#10;&#9;&#9;&#9;&lt;p lang="de-DE"&gt;public&#10;&#9;&#9;&#9;class MusicBand implements Serializable { .......&lt;/p&gt;&#10;&#9;&#9;&#9;&lt;p lang="de-DE"&gt;@Entity&lt;/p&gt;&#10;&#9;&#9;&#9;&lt;p lang="de-DE"&gt;@SequenceGenerator(name&#10;&#9;&#9;&#9;= "musicband_seq", sequenceName = "musicband_id_seq")&lt;/p&gt;&#10;&#9;&#9;&#9;&lt;p lang="de-DE"&gt;public&#10;&#9;&#9;&#9;class SoftrockGroup extends MusicBand{ ......&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;/tbody&gt;&#10;&lt;/table&gt;</description></item><item><title>@javax.persistence.OneToMany</title><link>https://www.laliluna.de/articles/java-persistence-hibernate/javax.persistence.onetomany.html</link><pubDate>Thu, 01 Jan 2009 00:00:00 +0000</pubDate><guid>https://www.laliluna.de/articles/java-persistence-hibernate/javax.persistence.onetomany.html</guid><description>&lt;img align="right" src="https://www.laliluna.de/images/hibernate-buch/9783898426350-small.gif" alt="hibernate buch cover klein"&gt;&lt;p&gt;Extract of the annotation reference in the Hibernate Developer Guide by example&lt;/p&gt;&#10;&lt;p&gt;Extensive, easy-to-follow introduction to Hibernate 3 including complete working examples. Integration of Hibernate with other technologies like Spring, EJB3, Struts and JavaServer Faces (MyFaces) is explained.&lt;/p&gt;&#10;&lt;p&gt;It is available as PDF in English language.&lt;br&gt;A German paper book was published by the Galileo Verlag.&lt;/p&gt;&#10;&lt;p&gt;&lt;a href="https://www.laliluna.de/hibernate-3-jpa-book-ebook.html"&gt;Get more information.&lt;/a&gt;&lt;/p&gt;&#10;&lt;table cellspacing="0" cellpadding="4" border="1"&gt;&#10;&lt;col&gt;&#10;&lt;col&gt;&#10;&lt;tbody&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;&lt;b&gt;@javax.persistence.OneToMany(&lt;/b&gt;&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;definiert eine 1:n Beziehung&lt;/p&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;Beispiel im Package &lt;i&gt;de.laliluna.relation.one2many&lt;/i&gt;&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;targetEntity = Invoice1.class, &#10;&#9;&#9;&#9;&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;definiert die andere Seite der Beziehung; die Angabe&#10;&#9;&#9;&#9;ist gewöhnlich nicht erforderlich, da die andere Seite der&#10;&#9;&#9;&#9;Beziehung von Hibernate aus dem Javatypen erraten wird.&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;cascade = {CascadeType.ALL}, &#10;&#9;&#9;&#9;&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;&lt;i&gt;Array&lt;/i&gt; von &lt;i&gt;CascadeType&lt;/i&gt;   siehe Kapitel&#10;&#9;&#9;&#9;12.5.4&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;fetch=FetchType.LAZY , &#10;&#9;&#9;&#9;&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;legt fest, ob die andere Seite der Beziehung erst&#10;&#9;&#9;&#9;beim Zugriff (&lt;i&gt;LAZY&lt;/i&gt;) oder sofort geladen wird (&lt;i&gt;EAGER&lt;/i&gt;);&#10;&#9;&#9;&#9;für 1:n Beziehungen ist der Vorgabewert &lt;i&gt;LAZY&lt;/i&gt;.&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;mappedBy="otherSideProperty"&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;legt fest, dass in einer bidirektionalen Beziehung,&#10;&#9;&#9;&#9;die andere Seite die Beziehung verwaltet&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;)&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr&gt;&#10;&lt;td valign="top" colspan="2"&gt;&#10;&#9;&#9;&#9;&lt;p lang="de-DE"&gt;&#9;@OneToMany&lt;/p&gt;&#10;&#9;&#9;&#9;&lt;p lang="de-DE"&gt;&#9;@JoinColumn(name="club_id",&#10;&#9;&#9;&#9;nullable=false)&lt;/p&gt;&#10;&#9;&#9;&#9;&lt;p lang="de-DE"&gt;&#9;private&#10;&#9;&#9;&#9;Set&amp;lt;JavaClubMember1&amp;gt; members = new&#10;&#9;&#9;&#9;HashSet&amp;lt;JavaClubMember1&amp;gt;();&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;/tbody&gt;&#10;&lt;/table&gt;</description></item><item><title>@javax.persistence.OneToOne</title><link>https://www.laliluna.de/articles/java-persistence-hibernate/javax.persistence.onetoone.html</link><pubDate>Thu, 01 Jan 2009 00:00:00 +0000</pubDate><guid>https://www.laliluna.de/articles/java-persistence-hibernate/javax.persistence.onetoone.html</guid><description>&lt;img align="right" src="https://www.laliluna.de/images/hibernate-buch/9783898426350-small.gif" alt="hibernate buch cover klein"&gt;&lt;p&gt;Extract of the annotation reference in the Hibernate Developer Guide by example&lt;/p&gt;&#10;&lt;p&gt;Extensive, easy-to-follow introduction to Hibernate 3 including complete working examples. Integration of Hibernate with other technologies like Spring, EJB3, Struts and JavaServer Faces (MyFaces) is explained.&lt;/p&gt;&#10;&lt;p&gt;It is available as PDF in English language.&lt;br&gt;A German paper book was published by the Galileo Verlag.&lt;/p&gt;&#10;&lt;p&gt;&lt;a href="https://www.laliluna.de/hibernate-3-jpa-book-ebook.html"&gt;Get more information.&lt;/a&gt;&lt;/p&gt;&#10;&#10;&lt;table cellspacing="0" cellpadding="4" border="1"&gt;&#10;&lt;col&gt;&#10;&lt;col&gt;&#10;&lt;tbody&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;&lt;b&gt;@javax.persistence.OneToOne(&lt;/b&gt;&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;definiert eine 1:1 Beziehung&lt;/p&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;Beispiel im Package &lt;i&gt;de.laliluna.relation.one2one&lt;/i&gt;&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;targetEntity = Invoice1.class, &#10;&#9;&#9;&#9;&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;definiert die andere Seite der Beziehung; die Angabe&#10;&#9;&#9;&#9;ist gewöhnlich nicht erforderlich, da die andere Seite der&#10;&#9;&#9;&#9;Beziehung von Hibernate aus dem Javatypen erraten wird.&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;cascade = {CascadeType.ALL}, &#10;&#9;&#9;&#9;&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;&lt;i&gt;Array&lt;/i&gt; von &lt;i&gt;CascadeType&lt;/i&gt;   siehe Kapitel&#10;&#9;&#9;&#9;12.5.4&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;fetch=FetchType.EAGER, &#10;&#9;&#9;&#9;&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;legt fest, ob die andere Seite der Beziehung erst&#10;&#9;&#9;&#9;beim Zugriff (&lt;i&gt;LAZY&lt;/i&gt;) oder sofort geladen wird (&lt;i&gt;EAGER&lt;/i&gt;);&#10;&#9;&#9;&#9;für 1:1 Beziehungen ist der Vorgabewert &lt;i&gt;EAGER&lt;/i&gt;.&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;optional=true, &#10;&#9;&#9;&#9;&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;Ist der Wert &lt;i&gt;false&lt;/i&gt;&#10;&#9;&#9;&#9;erzeugt Hibernate beim Erstellen der Tabelle einen&#10;&#9;&#9;&#9;Not-Null-Constraint. Wenn Cascading mit der Einstellung&#10;&#9;&#9;&#9;DELETE-ORPHAN konfiguriert ist, wird die andere Klasse gelöscht,&#10;&#9;&#9;&#9;wenn die Beziehung getrennt wird.&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;mappedBy="otherSideProperty"&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;legt fest, dass in einer bidirektionalen Beziehung,&#10;&#9;&#9;&#9;die andere Seite die Beziehung verwaltet&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;)&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr&gt;&#10;&lt;td valign="top" colspan="2"&gt;&#10;&#9;&#9;&#9;&lt;p lang="de-DE"&gt;import&#10;&#9;&#9;&#9;javax.persistence.JoinColumn;&lt;/p&gt;&#10;&#9;&#9;&#9;&lt;p lang="de-DE"&gt;import&#10;&#9;&#9;&#9;javax.persistence.OneToOne;&lt;br&gt;...... snip .........&lt;/p&gt;&#10;&#9;&#9;&#9;&lt;p lang="de-DE"&gt;@OneToOne(cascade&#10;&#9;&#9;&#9;= CascadeType.ALL)&lt;/p&gt;&#10;&#9;&#9;&#9;&lt;p lang="de-DE"&gt;&#9;@JoinColumn(name&#10;&#9;&#9;&#9;= "invoice_id")&lt;/p&gt;&#10;&#9;&#9;&#9;&lt;p lang="de-DE"&gt;&#9;private&#10;&#9;&#9;&#9;Invoice1 invoice;&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;/tbody&gt;&#10;&lt;/table&gt;</description></item><item><title>@javax.persistence.SecondaryTable</title><link>https://www.laliluna.de/articles/java-persistence-hibernate/javax.persistence.secondarytable.html</link><pubDate>Thu, 01 Jan 2009 00:00:00 +0000</pubDate><guid>https://www.laliluna.de/articles/java-persistence-hibernate/javax.persistence.secondarytable.html</guid><description>&lt;img align="right" src="https://www.laliluna.de/images/hibernate-buch/9783898426350-small.gif" alt="hibernate buch cover klein"&gt;&lt;p&gt;Extract of the annotation reference in the Hibernate Developer Guide by example&lt;/p&gt;&#10;&lt;p&gt;Extensive, easy-to-follow introduction to Hibernate 3 including complete working examples. Integration of Hibernate with other technologies like Spring, EJB3, Struts and JavaServer Faces (MyFaces) is explained.&lt;/p&gt;&#10;&lt;p&gt;It is available as PDF in English language.&lt;br&gt;A German paper book was published by the Galileo Verlag.&lt;/p&gt;&#10;&lt;p&gt;&lt;a href="https://www.laliluna.de/hibernate-3-jpa-book-ebook.html"&gt;Get more information.&lt;/a&gt;&lt;/p&gt;&#10;&#10;&lt;table cellspacing="0" cellpadding="0" bordercolor="#999999" border="1"&gt;&#10;&lt;col&gt;&#10;&lt;col&gt;&#10;&lt;tbody&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;&lt;b&gt;@javax.persistence.SecondaryTable(&lt;/b&gt;&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;ermöglicht bestimmte Attribute einer Klasse auf&#10;&#9;&#9;&#9;eine zweite Tabelle zu mappen;&lt;/p&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;für jedes Attribut muss man festlegen, dass es&#10;&#9;&#9;&#9;in der SecondaryTable gespeichert werden soll: (-&amp;gt;&#10;&#9;&#9;&#9;@Column(table="secondaryTable")&lt;/p&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;Beispiel im Java Package: &lt;i&gt;de.laliluna.other.diverse&lt;/i&gt;&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;name = "tableName", &#10;&#9;&#9;&#9;&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;Pflichtangabe, definiert den Namen der Tabelle.&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;catalog = "catalogName", &#10;&#9;&#9;&#9;&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;optional, Name des Datenbankkatalogs (Kataloge werden&#10;&#9;&#9;&#9;nicht von allen Datenbanken unterstützt);&lt;/p&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;überschreibt den Vorgabewert aus der Hibernate&#10;&#9;&#9;&#9;Konfiguration&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;schema = "dbSchemaName", &#10;&#9;&#9;&#9;&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;optional, Name des Datenbankschemas (Schemas werden&#10;&#9;&#9;&#9;nicht von allen Datenbanken unterstützt);&lt;/p&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;überschreibt den Vorgabewert aus der Hibernate&#10;&#9;&#9;&#9;Konfiguration&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;pkJoinColumns = { @PrimaryKeyJoinColumn(name = "id",&#10;&#9;&#9;&#9;referencedColumnName = "id", columnDefinition = "int4")&#10;&#9;&#9;&#9;}&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;ein &lt;i&gt;Array&lt;/i&gt; von &lt;i&gt;@PrimaryKeyJoinColumn&lt;/i&gt; die&#10;&#9;&#9;&#9;festlegen, wie die primäre und die sekundäre Tabelle&#10;&#9;&#9;&#9;"gemapped" werden.&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;)&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;/tbody&gt;&#10;&lt;/table&gt;</description></item><item><title>@javax.persistence.SequenceGenerator</title><link>https://www.laliluna.de/articles/java-persistence-hibernate/javax.persistence.sequencegenerator.html</link><pubDate>Thu, 01 Jan 2009 00:00:00 +0000</pubDate><guid>https://www.laliluna.de/articles/java-persistence-hibernate/javax.persistence.sequencegenerator.html</guid><description>&lt;img align="right" src="https://www.laliluna.de/images/hibernate-buch/9783898426350-small.gif" alt="hibernate buch cover klein"&gt;&lt;p&gt;Extract of the annotation reference in the Hibernate Developer Guide by example&lt;/p&gt;&#10;&lt;p&gt;Extensive, easy-to-follow introduction to Hibernate 3 including complete working examples. Integration of Hibernate with other technologies like Spring, EJB3, Struts and JavaServer Faces (MyFaces) is explained.&lt;/p&gt;&#10;&lt;p&gt;It is available as PDF in English language.&lt;br&gt;A German paper book was published by the Galileo Verlag.&lt;/p&gt;&#10;&lt;p&gt;&lt;a href="https://www.laliluna.de/hibernate-3-jpa-book-ebook.html"&gt;Get more information.&lt;/a&gt;&lt;/p&gt;&#10;&#10;&lt;table cellspacing="0" cellpadding="4" border="1"&gt;&#10;&lt;col&gt;&#10;&lt;col&gt;&#10;&lt;tbody&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;&lt;b&gt;@javax.persistence.SequenceGenerator(&lt;/b&gt;&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;definiert einen Id Generator, der von der Annotation&#10;&#9;&#9;&#9;&lt;i&gt;@GeneratedValue&lt;/i&gt; referenziert werden kann; Der Generator&#10;&#9;&#9;&#9;verwendet eine Sequenz.&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;name="generatorName",&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;Name des Generators, der in der Annotation&#10;&#9;&#9;&#9;&lt;i&gt;@GeneratedValue&lt;/i&gt; verwendet&#10;&#9;&#9;&#9;werden kann&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;sequenceName="dbSequenceName",&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;optional, Name der Sequenz in der Datenbank, Vorgabe:&#10;&#9;&#9;&#9;hibernate_sequence&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;initialValue=1,&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;legt den Startwert der Sequenz fest, Vorgabewert: 1&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;allocationSize=50&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;Vorgabewert: 50, Der Sequenzgenerator ruft nicht für&#10;&#9;&#9;&#9;jeden neuen Datensatz eine Datenbanksequenz auf, sondern erhöht&#10;&#9;&#9;&#9;die Sequenz um die &lt;i&gt;allocationSize&lt;/i&gt;&#10;&#9;&#9;&#9;und verteilt die Nummern. Erst wenn alle Nummern verteilt sind,&#10;&#9;&#9;&#9;wird die Sequenz wieder aufgerufen. Wenn man 50 Einträge in&#10;&#9;&#9;&#9;die Datenbank schreibt spart man sich bei einer &lt;i&gt;allocationSize&lt;/i&gt;&#10;&#9;&#9;&#9;von 50 daher 49 Abfragen der Sequenz. Das verbessert die&#10;&#9;&#9;&#9;Performance. Der Nachteil ist, dass die vergebenen Ids bei einem&#10;&#9;&#9;&#9;Neustart der Anwendung Lücken haben.&lt;/p&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;Generatoren sollten laut EJB 3 Spec global sein, aber&#10;&#9;&#9;&#9; Hibernate hält sich mindestens bis zur Version 3.2 nicht an&#10;&#9;&#9;&#9;diese Festlegung. &#10;&#9;&#9;&#9;&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;)&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr&gt;&#10;&lt;td valign="top" colspan="2"&gt;&#10;&#9;&#9;&#9;&lt;p lang="de-DE"&gt;@Entity&lt;/p&gt;&#10;&#9;&#9;&#9;&lt;p lang="de-DE"&gt;@SequenceGenerator(name&#10;&#9;&#9;&#9;= "puma_seq", sequenceName = "puma_id_seq")&lt;/p&gt;&#10;&#9;&#9;&#9;&lt;p lang="de-DE"&gt;public&#10;&#9;&#9;&#9;class Puma implements Serializable {&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;/tbody&gt;&#10;&lt;/table&gt;</description></item><item><title>@javax.persistence.Table</title><link>https://www.laliluna.de/articles/java-persistence-hibernate/javax.persistence.table.html</link><pubDate>Thu, 01 Jan 2009 00:00:00 +0000</pubDate><guid>https://www.laliluna.de/articles/java-persistence-hibernate/javax.persistence.table.html</guid><description>&lt;img align="right" src="https://www.laliluna.de/images/hibernate-buch/9783898426350-small.gif" alt="hibernate buch cover klein"&gt;&lt;p&gt;Extract of the annotation reference in the Hibernate Developer Guide by example&lt;/p&gt;&#10;&lt;p&gt;Extensive, easy-to-follow introduction to Hibernate 3 including complete working examples. Integration of Hibernate with other technologies like Spring, EJB3, Struts and JavaServer Faces (MyFaces) is explained.&lt;/p&gt;&#10;&lt;p&gt;It is available as PDF in English language.&lt;br&gt;A German paper book was published by the Galileo Verlag.&lt;/p&gt;&#10;&lt;p&gt;&lt;a href="https://www.laliluna.de/hibernate-3-jpa-book-ebook.html"&gt;Get more information.&lt;/a&gt;&lt;/p&gt;&#10;&#10;&lt;table cellspacing="0" cellpadding="2" border="1"&gt;&#10;&lt;col&gt;&#10;&lt;col&gt;&#10;&lt;tbody&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;&lt;b&gt;@javax.persistence.Table(&lt;/b&gt;&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;optional, ermöglicht den Tabellennamen&#10;&#9;&#9;&#9;festzulegen, auf den die Klasse gemapped ist Der Vorgabewert ist&#10;&#9;&#9;&#9;der Klassen- bzw. Entityname&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;name = "tableName", &#10;&#9;&#9;&#9;&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;Name der Datenbanktabelle&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;catalog = "catalogName", &#10;&#9;&#9;&#9;&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;optional, Name des Datenbankkatalogs (Kataloge werden&#10;&#9;&#9;&#9;nicht von allen Datenbanken unterstützt);&lt;/p&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;überschreibt den Vorgabewert aus der Hibernate&#10;&#9;&#9;&#9;Konfiguration&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;schema = "dbSchemaName", &#10;&#9;&#9;&#9;&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;optional, Name des Datenbankschemas (Schemas werden&#10;&#9;&#9;&#9;nicht von allen Datenbanken unterstützt);&lt;/p&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;überschreibt den Vorgabewert aus der Hibernate&#10;&#9;&#9;&#9;Konfiguration&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;uniqueConstraints = { &lt;br&gt;@UniqueConstraint(&lt;br&gt;columnNames&#10;&#9;&#9;&#9;= { "databaseColumn", "anotherColumn" }) }&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;optional, bewirkt das Hibernate beim Erzeugen von&#10;&#9;&#9;&#9;Tabellen einen unique key constraint erzeugt;&lt;/p&gt;&#10;&#9;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;)&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;/tbody&gt;&#10;&lt;/table&gt;</description></item><item><title>@javax.persistence.TableGenerator</title><link>https://www.laliluna.de/articles/java-persistence-hibernate/javax.persistence.tablegenerator.html</link><pubDate>Thu, 01 Jan 2009 00:00:00 +0000</pubDate><guid>https://www.laliluna.de/articles/java-persistence-hibernate/javax.persistence.tablegenerator.html</guid><description>&lt;img align="right" src="https://www.laliluna.de/images/hibernate-buch/9783898426350-small.gif" alt="hibernate buch cover klein"&gt;&lt;p&gt;Extract of the annotation reference in the Hibernate Developer Guide by example&lt;/p&gt;&#10;&lt;p&gt;Extensive, easy-to-follow introduction to Hibernate 3 including complete working examples. Integration of Hibernate with other technologies like Spring, EJB3, Struts and JavaServer Faces (MyFaces) is explained.&lt;/p&gt;&#10;&lt;p&gt;It is available as PDF in English language.&lt;br&gt;A German paper book was published by the Galileo Verlag.&lt;/p&gt;&#10;&lt;p&gt;&lt;a href="https://www.laliluna.de/hibernate-3-jpa-book-ebook.html"&gt;Get more information.&lt;/a&gt;&lt;/p&gt;&#10;&#10;&#10;&lt;table cellspacing="0" cellpadding="4" border="1"&gt;&#10;&lt;col&gt;&#10;&lt;col&gt;&#10;&lt;tbody&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;&lt;b&gt;@javax.persistence.TableGenerator(&lt;/b&gt;&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;definiert einen Id Generator, der von der Annotation&#10;&#9;&#9;&#9;&lt;i&gt;@GeneratedValue&lt;/i&gt; referenziert werden kann; Der Generator&#10;&#9;&#9;&#9;speichert den letzten Wert in einer Datebanktabelle. &#10;&#9;&#9;&#9;&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;name="generatorName",&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;Name des Generators, der in der Annotation&#10;&#9;&#9;&#9;&lt;i&gt;@GeneratedValue&lt;/i&gt; verwendet&#10;&#9;&#9;&#9;werden kann&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;table="databaseTable",&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;Tabelle, in der der nächste zu vergebene Wert&#10;&#9;&#9;&#9;der Id gespeichert wird&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;catalog="databaseCatalog",&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;Datenbankkatalog der Tabelle (wird nur von manchen&#10;&#9;&#9;&#9;Datenbanken unterstützt)&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;schema="schemaName",&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;Datenbankschema der Tabelle (wird nur von manchen&#10;&#9;&#9;&#9;Datenbanken unterstützt)&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;valueColumnName&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;Tabellenspalte, in der der nächste zu vergebene&#10;&#9;&#9;&#9;Wert der Id gespeichert wird&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;pkColumnValue&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;Tabellenspalte, in der ein Schlüsselwert steht,&#10;&#9;&#9;&#9;der den nächsten zu vergebene Wert identifiziert; Vorgabe:&#10;&#9;&#9;&#9;Name der Klasse&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;initialValue&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;legt den Startwert der Id fest, Vorgabewert: 1&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;allocationSize&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;Vorgabewert: 50, Der Generator erhöht nicht für&#10;&#9;&#9;&#9;jeden neuen Datensatz den Wert der Id in der Tabelle, sondern&#10;&#9;&#9;&#9;erhöht die Sequenz um die &lt;i&gt;allocationSize&lt;/i&gt;&#10;&#9;&#9;&#9;und verteilt die Nummern. Erst wenn alle Nummern verteilt sind,&#10;&#9;&#9;&#9;wird die Sequenz wieder aufgerufen. Wenn man 50 Einträge in&#10;&#9;&#9;&#9;die Datenbank schreibt spart man sich bei einer &lt;i&gt;allocationSize&lt;/i&gt;&#10;&#9;&#9;&#9;von 50 daher 49 Mal das Erhöhen des Wertes. Das verbessert&#10;&#9;&#9;&#9;die Performance. Der Nachteil ist, dass die vergebenen Ids bei&#10;&#9;&#9;&#9;einem Neustart der Anwendung Lücken haben.&lt;/p&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;Generatoren sollten laut EJB 3 Spec global sein, aber&#10;&#9;&#9;&#9; Hibernate hält sich mindestens bis zur Version 3.2 nicht an&#10;&#9;&#9;&#9;diese Festlegung. &#10;&#9;&#9;&#9;&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;uniqueConstraints={@UniqueConstraint(columnNames={"col_A,&#10;&#9;&#9;&#9;col_B"})}&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;optional, erzeugt beim Erstellen der Tabelle einen&#10;&#9;&#9;&#9;Unique-Key-Constraint&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;)&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr&gt;&#10;&lt;td valign="top" colspan="2"&gt;&#10;&#9;&#9;&#9;&lt;p lang="de-DE"&gt;@Id&lt;/p&gt;&#10;&#9;&#9;&#9;&lt;p lang="de-DE"&gt;@TableGenerator(name&#10;&#9;&#9;&#9;= "puma_gen", table="primary_keys")&lt;/p&gt;&#10;&#9;&#9;&#9;&lt;p lang="de-DE"&gt;@GeneratedValue(strategy&#10;&#9;&#9;&#9;= GenerationType.TABLE, generator = "puma_gen")&lt;/p&gt;&#10;&#9;&#9;&#9;&lt;p lang="de-DE"&gt;private&#10;&#9;&#9;&#9;Integer id;&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;/tbody&gt;&#10;&lt;/table&gt;</description></item><item><title>@javax.persistence.Temporal</title><link>https://www.laliluna.de/articles/java-persistence-hibernate/javax.persistence.temporal.html</link><pubDate>Thu, 01 Jan 2009 00:00:00 +0000</pubDate><guid>https://www.laliluna.de/articles/java-persistence-hibernate/javax.persistence.temporal.html</guid><description>&lt;img align="right" src="https://www.laliluna.de/images/hibernate-buch/9783898426350-small.gif" alt="hibernate buch cover klein"&gt;&lt;p&gt;Extract of the annotation reference in the Hibernate Developer Guide by example&lt;/p&gt;&#10;&lt;p&gt;Extensive, easy-to-follow introduction to Hibernate 3 including complete working examples. Integration of Hibernate with other technologies like Spring, EJB3, Struts and JavaServer Faces (MyFaces) is explained.&lt;/p&gt;&#10;&lt;p&gt;It is available as PDF in English language.&lt;br&gt;A German paper book was published by the Galileo Verlag.&lt;/p&gt;&#10;&lt;p&gt;&lt;a href="https://www.laliluna.de/hibernate-3-jpa-book-ebook.html"&gt;Get more information.&lt;/a&gt;&lt;/p&gt;&#10;&#10;&#10;&lt;table cellspacing="0" cellpadding="0" border="1"&gt;&#10;&lt;col&gt;&#10;&lt;col&gt;&#10;&lt;tbody&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;&lt;b&gt;@javax.persistence.Temporal(&lt;/b&gt;&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;definiert präzise eine zeitbezogene&#10;&#9;&#9;&#9;Tabellenspalte (Datum, Uhrzeit oder Zeitstempel)&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;value=TemporalType.DATE&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;mögliche Werte: DATE, TIME, TIMESTAMP, NONE&lt;/p&gt;&#10;&#9;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;)&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr&gt;&#10;&lt;td valign="top" colspan="2"&gt;&#10;&#9;&#9;&#9;&lt;p lang="de-DE"&gt;&#10;&#9;&#9;&#9; @Temporal(value=TemporalType.DATE)&lt;/p&gt;&#10;&#9;&#9;&#9;&lt;p lang="de-DE"&gt;&#10;&#9;&#9;&#9; private&#10;&#9;&#9;&#9;Date dateField; &#10;&#9;&#9;&#9;&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;/tbody&gt;&#10;&lt;/table&gt;</description></item><item><title>@javax.persistence.Transient</title><link>https://www.laliluna.de/articles/java-persistence-hibernate/javax.persistence.transient.html</link><pubDate>Thu, 01 Jan 2009 00:00:00 +0000</pubDate><guid>https://www.laliluna.de/articles/java-persistence-hibernate/javax.persistence.transient.html</guid><description>&lt;img align="right" src="https://www.laliluna.de/images/hibernate-buch/9783898426350-small.gif" alt="hibernate buch cover klein"&gt;&lt;p&gt;Extract of the annotation reference in the Hibernate Developer Guide by example&lt;/p&gt;&#10;&lt;p&gt;Extensive, easy-to-follow introduction to Hibernate 3 including complete working examples. Integration of Hibernate with other technologies like Spring, EJB3, Struts and JavaServer Faces (MyFaces) is explained.&lt;/p&gt;&#10;&lt;p&gt;It is available as PDF in English language.&lt;br&gt;A German paper book was published by the Galileo Verlag.&lt;/p&gt;&#10;&lt;p&gt;&lt;a href="https://www.laliluna.de/hibernate-3-jpa-book-ebook.html"&gt;Get more information.&lt;/a&gt;&lt;/p&gt;&#10;&#10;&lt;table cellspacing="0" cellpadding="0" border="1"&gt;&#10;&lt;col&gt;&#10;&lt;col&gt;&#10;&lt;tbody&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;&lt;b&gt;@javax.persistence.Transient&lt;/b&gt;&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;definiert, dass ein Attribut nicht "gemapped" ist&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr&gt;&#10;&lt;td valign="top" colspan="2"&gt;&#10;&#9;&#9;&#9;&lt;p lang="de-DE"&gt;&#10;&#9;&#9;&#9; @Transient&lt;/p&gt;&#10;&#9;&#9;&#9;&lt;p lang="de-DE"&gt;&#10;&#9;&#9;&#9; private&#10;&#9;&#9;&#9;String transientField;&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;/tbody&gt;&#10;&lt;/table&gt;</description></item><item><title>@javax.persistence.UniqueConstraint</title><link>https://www.laliluna.de/articles/java-persistence-hibernate/javax.persistence.uniqueconstraint.html</link><pubDate>Thu, 01 Jan 2009 00:00:00 +0000</pubDate><guid>https://www.laliluna.de/articles/java-persistence-hibernate/javax.persistence.uniqueconstraint.html</guid><description>&lt;img align="right" src="https://www.laliluna.de/images/hibernate-buch/9783898426350-small.gif" alt="hibernate buch cover klein"&gt;&lt;p&gt;Extract of the annotation reference in the Hibernate Developer Guide by example&lt;/p&gt;&#10;&lt;p&gt;Extensive, easy-to-follow introduction to Hibernate 3 including complete working examples. Integration of Hibernate with other technologies like Spring, EJB3, Struts and JavaServer Faces (MyFaces) is explained.&lt;/p&gt;&#10;&lt;p&gt;It is available as PDF in English language.&lt;br&gt;A German paper book was published by the Galileo Verlag.&lt;/p&gt;&#10;&lt;p&gt;&lt;a href="https://www.laliluna.de/hibernate-3-jpa-book-ebook.html"&gt;Get more information.&lt;/a&gt;&lt;/p&gt;&#10;&#10;&#10;&lt;table cellspacing="0" cellpadding="0" bordercolor="#999999" border="1"&gt;&#10;&lt;col&gt;&#10;&lt;col&gt;&#10;&lt;tbody&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;&lt;b&gt;@javax.persistence.UniqueConstraint(&lt;/b&gt;&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;definiert einen Unique-Key-Constraint, Hibernate&#10;&#9;&#9;&#9;verwendet diese Information beim Erzeugen von Tabellen. &#10;&#9;&#9;&#9;&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;columnNames = { "databaseColumnName}",&#10;&#9;&#9;&#9;"anotherColumn" } &#10;&#9;&#9;&#9;&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;Pflichtfeld, legt die Tabellenspalten fest, die im&#10;&#9;&#9;&#9;Constraint enthalten sind&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;)&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;/tbody&gt;&#10;&lt;/table&gt;</description></item><item><title>@javax.persistence.Version</title><link>https://www.laliluna.de/articles/java-persistence-hibernate/javax.persistence.version.html</link><pubDate>Thu, 01 Jan 2009 00:00:00 +0000</pubDate><guid>https://www.laliluna.de/articles/java-persistence-hibernate/javax.persistence.version.html</guid><description>&lt;img align="right" src="https://www.laliluna.de/images/hibernate-buch/9783898426350-small.gif" alt="hibernate buch cover klein"&gt;&lt;p&gt;Extract of the annotation reference in the Hibernate Developer Guide by example&lt;/p&gt;&#10;&lt;p&gt;Extensive, easy-to-follow introduction to Hibernate 3 including complete working examples. Integration of Hibernate with other technologies like Spring, EJB3, Struts and JavaServer Faces (MyFaces) is explained.&lt;/p&gt;&#10;&lt;p&gt;It is available as PDF in English language.&lt;br&gt;A German paper book was published by the Galileo Verlag.&lt;/p&gt;&#10;&lt;p&gt;&lt;a href="https://www.laliluna.de/hibernate-3-jpa-book-ebook.html"&gt;Get more information.&lt;/a&gt;&lt;/p&gt;&#10;&#10;&lt;table cellspacing="0" cellpadding="4" border="1"&gt;&#10;&lt;col&gt;&#10;&lt;col&gt;&#10;&lt;tbody&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;&lt;b&gt;@javax.persistence.Version&lt;/b&gt;&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;definiert eine Versionsspalte, die im Rahmen von&#10;&#9;&#9;&#9;&lt;i&gt;Optimistic Locking&lt;/i&gt; verwendet wird(siehe Kapitel 8.5.1)&lt;/p&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;Die Annotation kann Attributen mit einem der&#10;&#9;&#9;&#9;folgenden Javatypen zugeordnet werden: &lt;i&gt;int, Integer, short,&#10;&#9;&#9;&#9;Short, long, Long, java.util.Date&lt;/i&gt;.&lt;/p&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;Sie können nur eine Versionsspalte pro Klasse&#10;&#9;&#9;&#9;verwenden und sollten diese auch nicht selber setzen.&#10;&#9;&#9;&#9;Versionsspalten müssen ferner in der Primärtabelle sein&#10;&#9;&#9;&#9;(siehe Annotation @SecondaryTable). &#10;&#9;&#9;&#9;&lt;/p&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;Ich empfehle Ihnen Attribute vom Typ &lt;i&gt;int &lt;/i&gt;oder&lt;i&gt;&#10;&#9;&#9;&#9;long&lt;/i&gt; zu verwenden. Wenn Sie&#10;&#9;&#9;&#9;die Serverzeit ändern oder Ihr Server sehr schnell ist, kann&#10;&#9;&#9;&#9;es mit dem Typen &lt;i&gt;java.util.Date&lt;/i&gt;&#10;&#9;&#9;&#9;Schwierigkeiten gehen.&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr&gt;&#10;&lt;td valign="top" colspan="2"&gt;&#10;&#9;&#9;&#9;&lt;p lang="de-DE"&gt;&#10;&#9;&#9;&#9; @Version&lt;/p&gt;&#10;&#9;&#9;&#9;&lt;p lang="de-DE"&gt;&#10;&#9;&#9;&#9; private&#10;&#9;&#9;&#9;Long version;&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;/tbody&gt;&#10;&lt;/table&gt;</description></item><item><title>@org.hibernate.annotations.CollectionOfElement</title><link>https://www.laliluna.de/articles/java-persistence-hibernate/org.hibernate.annotations.collectionofelement.html</link><pubDate>Thu, 01 Jan 2009 00:00:00 +0000</pubDate><guid>https://www.laliluna.de/articles/java-persistence-hibernate/org.hibernate.annotations.collectionofelement.html</guid><description>&lt;img align="right" src="https://www.laliluna.de/images/hibernate-buch/9783898426350-small.gif" alt="hibernate buch cover klein"&gt;&lt;p&gt;Extract of the annotation reference in the Hibernate Developer Guide by example&lt;/p&gt;&#10;&lt;p&gt;Extensive, easy-to-follow introduction to Hibernate 3 including complete working examples. Integration of Hibernate with other technologies like Spring, EJB3, Struts and JavaServer Faces (MyFaces) is explained.&lt;/p&gt;&#10;&lt;p&gt;It is available as PDF in English language.&lt;br&gt;A German paper book was published by the Galileo Verlag.&lt;/p&gt;&#10;&lt;p&gt;&lt;a href="https://www.laliluna.de/hibernate-3-jpa-book-ebook.html"&gt;Get more information.&lt;/a&gt;&lt;/p&gt;&#10;&#10;&#10;&lt;table cellspacing="0" cellpadding="4" border="1"&gt;&#10;&lt;col&gt;&#10;&lt;col&gt;&#10;&lt;tbody&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;&lt;b&gt;@org.hibernate.annotations.CollectionOfElements(&lt;/b&gt;&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;Hibernate Erweiterung, um eine &lt;i&gt;Map&lt;/i&gt;, ein &lt;i&gt;Set&#10;&#9;&#9;&#9;&lt;/i&gt;oder eine &lt;i&gt;List&lt;/i&gt;&#10;&#9;&#9;&#9;von Objekten als Komponente zu speichern&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;targetElement=WinterAddress.class, &#10;&#9;&#9;&#9;&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;definiert die Klasse der Komponente; die Angabe ist&#10;&#9;&#9;&#9;gewöhnlich nicht erforderlich, da die andere Seite der&#10;&#9;&#9;&#9;Beziehung von Hibernate aus dem generischen Javatypen erraten&#10;&#9;&#9;&#9;wird.&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;fetch=FetchType.EAGER&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;legt fest, ob die Komponente erst beim Zugriff (&lt;i&gt;LAZY&lt;/i&gt;)&#10;&#9;&#9;&#9; oder sofort geladen wird (&lt;i&gt;EAGER&lt;/i&gt;); Vorgabewert ist &lt;i&gt;LAZY&lt;/i&gt;.&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;)&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;Beispiel im Java-Package&#10;&#9;&#9;&#9;&lt;i&gt;de.laliluna.component.collection1&lt;/i&gt;, &#10;&#9;&#9;&#9;&lt;i&gt;de.laliluna.component.collection2&lt;/i&gt;&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr&gt;&#10;&lt;td valign="top" colspan="2"&gt;&#10;&#9;&#9;&#9;&lt;p lang="de-DE"&gt;&#10;&#9;&#9;&#9; @CollectionOfElements&lt;/p&gt;&#10;&#9;&#9;&#9;&lt;p lang="de-DE"&gt;&#10;&#9;&#9;&#9; @JoinColumn(name&#10;&#9;&#9;&#9;= "hedgehog_id")&lt;/p&gt;&#10;&#9;&#9;&#9;&lt;p lang="de-DE"&gt;&#10;&#9;&#9;&#9; @IndexColumn(name&#10;&#9;&#9;&#9;= "list_index")&lt;/p&gt;&#10;&#9;&#9;&#9;&lt;p lang="de-DE"&gt;&#10;&#9;&#9;&#9; private&#10;&#9;&#9;&#9;List&amp;lt;WinterAddress&amp;gt; addresses = new&#10;&#9;&#9;&#9;ArrayList&amp;lt;WinterAddress&amp;gt;();&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;/tbody&gt;&#10;&lt;/table&gt;</description></item><item><title>@org.hibernate.annotations.DiscriminatorFormula</title><link>https://www.laliluna.de/articles/java-persistence-hibernate/org.hibernate.annotations.discriminatorformula.html</link><pubDate>Thu, 01 Jan 2009 00:00:00 +0000</pubDate><guid>https://www.laliluna.de/articles/java-persistence-hibernate/org.hibernate.annotations.discriminatorformula.html</guid><description>&lt;img align="right" src="https://www.laliluna.de/images/hibernate-buch/9783898426350-small.gif" alt="hibernate buch cover klein"&gt;&lt;p&gt;Extract of the annotation reference in the Hibernate Developer Guide by example&lt;/p&gt;&#10;&lt;p&gt;Extensive, easy-to-follow introduction to Hibernate 3 including complete working examples. Integration of Hibernate with other technologies like Spring, EJB3, Struts and JavaServer Faces (MyFaces) is explained.&lt;/p&gt;&#10;&lt;p&gt;It is available as PDF in English language.&lt;br&gt;A German paper book was published by the Galileo Verlag.&lt;/p&gt;&#10;&lt;p&gt;&lt;a href="https://www.laliluna.de/hibernate-3-jpa-book-ebook.html"&gt;Get more information.&lt;/a&gt;&lt;/p&gt;&#10;&#10;&lt;table cellspacing="0" cellpadding="4" border="1"&gt;&#10;&lt;col&gt;&#10;&lt;col&gt;&#10;&lt;tbody&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p lang="de-DE"&gt;&lt;a name="DDE_LINK14"&gt;&lt;/a&gt;&#10;&#9;&#9;&#9;&lt;b&gt;@org.hibernate.annotations.DiscriminatorFormula(&lt;/b&gt;&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;&lt;span lang="de-DE"&gt;alternative&#10;&#9;&#9;&#9;zur Annotation &lt;/span&gt;&lt;span lang="de-DE"&gt;&lt;i&gt;@DiscriminatorColumn;&#10;&#9;&#9;&#9;&lt;/i&gt;&lt;/span&gt;verwendet eine SQL Anweisung, um&#10;&#9;&#9;&#9;den Klassentypen zu bestimmen&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;value="case when name like 'R%' then 0 when name&#10;&#9;&#9;&#9;like 'G%' then 1 else 2 end"&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;ein SQL Schnipsel, dass den Typ der Klasse bestimmt&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;)&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr&gt;&#10;&lt;td valign="top" colspan="2"&gt;&#10;&#9;&#9;&#9;&lt;p lang="de-DE"&gt;@DiscriminatorFormula(value=&lt;br&gt; case&#10;&#9;&#9;&#9;when name like 'R%' then 0 when name like 'G%' then 1 else 2 end)&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;/tbody&gt;&#10;&lt;/table&gt;</description></item><item><title>@org.hibernate.annotations.Entity</title><link>https://www.laliluna.de/articles/java-persistence-hibernate/org.hibernate.annotations.entity.html</link><pubDate>Thu, 01 Jan 2009 00:00:00 +0000</pubDate><guid>https://www.laliluna.de/articles/java-persistence-hibernate/org.hibernate.annotations.entity.html</guid><description>&lt;img align="right" src="https://www.laliluna.de/images/hibernate-buch/9783898426350-small.gif" alt="hibernate buch cover klein"&gt;&lt;p&gt;Extract of the annotation reference in the Hibernate Developer Guide by example&lt;/p&gt;&#10;&lt;p&gt;Extensive, easy-to-follow introduction to Hibernate 3 including complete working examples. Integration of Hibernate with other technologies like Spring, EJB3, Struts and JavaServer Faces (MyFaces) is explained.&lt;/p&gt;&#10;&lt;p&gt;It is available as PDF in English language.&lt;br&gt;A German paper book was published by the Galileo Verlag.&lt;/p&gt;&#10;&lt;p&gt;&lt;a href="https://www.laliluna.de/hibernate-3-jpa-book-ebook.html"&gt;Get more information.&lt;/a&gt;&lt;/p&gt;&#10;&#10;&lt;table cellspacing="0" cellpadding="0" border="1"&gt;&#10;&lt;col&gt;&#10;&lt;col&gt;&#10;&lt;tbody&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;&lt;b&gt;@org.hibernate.annotations.Entity(&lt;/b&gt;&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;ist eine Erweiterung zur Annotation&#10;&#9;&#9;&#9;&lt;i&gt;@javax.persistence.Entity &lt;/i&gt;und kann nur zusätzlich&#10;&#9;&#9;&#9;verwendet werden; Sie erlaubt detailliert Hibernate spezifische&#10;&#9;&#9;&#9;Parameter für das Entity festzulegen.&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;mutable = true,&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;Wenn das Entity nur gelesen aber nicht geändert&#10;&#9;&#9;&#9;werden kann, sollte man &lt;i&gt;mutable &lt;/i&gt;den Wert &lt;i&gt;false &lt;/i&gt;zuweisen.&#10;&#9;&#9;&#9;&#10;&#9;&#9;&#9;&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;dynamicInsert = true, &#10;&#9;&#9;&#9;&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;Update-Queries für Klassen werden gewöhnlich&#10;&#9;&#9;&#9;bei der Initialisierung erzeugt und aktualisieren alle Spalten der&#10;&#9;&#9;&#9;Datenbank, auch wenn sich nur ein Feld ändert. Das ist nur in&#10;&#9;&#9;&#9;genau einer Situation ein Problem:&lt;/p&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;Wenn Sie in einer Tabelle Spalten mit kurzen Werten&#10;&#9;&#9;&#9;und Spalten mit Blobs/Clobs mischen und häufig die kurzen&#10;&#9;&#9;&#9;Spalten ändern, würde der Update Befehl unnötiger&#10;&#9;&#9;&#9;Weise die Blob/Clob Spalten beinhalten und die Geschwindigkeit&#10;&#9;&#9;&#9;verschlechtern.&lt;/p&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;Lösung a: Teilen Sie Ihre Tabelle auf.&lt;/p&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;Lösung b: Verwenden Sie dynamic-update&lt;/p&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&lt;a name="DDE_LINK961"&gt;&lt;/a&gt;&#10;&#9;&#9;&#9;Wenn Sie &lt;i&gt;dynamic-update&lt;/i&gt; verwenden, erzeugt&#10;&#9;&#9;&#9;Hibernate dynamisch eine Update-Query, die nur die Spalten&#10;&#9;&#9;&#9;enthält, welche sich auch geändert haben. Es ist wichtig&#10;&#9;&#9;&#9;zu wissen, dass die Erzeugung der Query Zeit kostet, da keine&#10;&#9;&#9;&#9;existierende Query wiederverwendet werden kann. Verwenden Sie das&#10;&#9;&#9;&#9;also nicht bei "normalen" Tabellen. Weitere Hinweise finden&#10;&#9;&#9;&#9;Sie in Kapitel &lt;a href="#17.3.dynamic-update,%20dynamic%20insert%7coutline"&gt;17.3Dynamic-update,&#10;&#9;&#9;&#9;dynamic insert&lt;/a&gt;.&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p lang="de-DE"&gt;&#10;&#9;&#9;&#9;dynamicUpdate&#10;&#9;&#9;&#9;= true,&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;Das Prinzip ist das gleiche, wie bei &lt;i&gt;dynamic-update&lt;/i&gt;.&#10;&#9;&#9;&#9;Der Unterschied ist, dass nur Spaltennamen in der Insert-Query&#10;&#9;&#9;&#9;verwendet werden, die nicht leer sind.&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p lang="de-DE"&gt;&#10;&#9;&#9;&#9;selectBeforeUpdate&#10;&#9;&#9;&#9;= false, &#10;&#9;&#9;&#9;&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;Diese Einstellung wird die Performance deutlich&#10;&#9;&#9;&#9;verschlechtern und sollte daher vermieden werden.&lt;/p&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;Wenn &lt;i&gt;select-before-update&lt;/i&gt; verwendet wird,&#10;&#9;&#9;&#9;prüft Hibernate vor jedem Update mit einer Abfrage, ob sich&#10;&#9;&#9;&#9;die Daten verändert haben. Ein sinnvolles Szenario wäre:&#10;&#9;&#9;&#9;Man möchte vermeiden, dass durch ein unnötiges Update&#10;&#9;&#9;&#9;ein Trigger auf der Datenbank aufgerufen wird.&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p lang="de-DE"&gt;&#10;&#9;&#9;&#9;polymorphism&#10;&#9;&#9;&#9;= PolymorphismType.IMPLICIT, &#10;&#9;&#9;&#9;&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;Diese Einstellung legt fest, wie sich Hibernate bei&#10;&#9;&#9;&#9;Vererbungshierarchien verhält.&lt;/p&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;Beispiel: class Blume extends Pflanze. Die Query&#10;&#9;&#9;&#9;heißt  &lt;i&gt;select from Pflanze&lt;/i&gt;&lt;/p&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;&lt;i&gt;Implicit &lt;/i&gt;bedeutet, dass diese Abfrage, je&#10;&#9;&#9;&#9;nachdem, ob ein Datenbankeintrag eine Blume oder nur eine Pflanze&#10;&#9;&#9;&#9;ist, eine Instanz der jeweiligen Klasse zurückgibt.&lt;/p&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;&lt;i&gt;Explicit &lt;/i&gt;würde bei dieser Abfrage, wenn&#10;&#9;&#9;&#9;es eine Instanz der Klasse Blume findet, eine Klasse Pflanze&#10;&#9;&#9;&#9;zurückgeben und die zusätzlichen Felder von Blume&#10;&#9;&#9;&#9;einfach ignorieren.&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p lang="de-DE"&gt;&#10;&#9;&#9;&#9; persister&#10;&#9;&#9;&#9;= "customPersister", &#10;&#9;&#9;&#9;&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;Diese Einstellung muss äußerst selten&#10;&#9;&#9;&#9;geändert werden. Ein Persister ist verantwortlich für&#10;&#9;&#9;&#9;das Schreiben der Daten. Man könnte zum Beispiel einen&#10;&#9;&#9;&#9;Persister erstellen, der Daten in LDAP speichert. &#10;&#9;&#9;&#9;&lt;/p&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;Im Hibernate Download finden Sie ein Beispiel im &lt;i&gt;test&lt;/i&gt;&#10;&#9;&#9;&#9;Verzeichnis. Suchen Sie nach der Klasse&#10;&#9;&#9;&#9;&lt;i&gt;org.hibernate.test.legacy.CustomPersister.&lt;/i&gt;&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p lang="de-DE"&gt;&#10;&#9;&#9;&#9;optimisticLock&#10;&#9;&#9;&#9;= OptimisticLockType.VERSION&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;Legt die Strategie für &lt;i&gt;optimistic locking&#10;&#9;&#9;&#9;fest. &lt;/i&gt;Ich empfehle die&#10;&#9;&#9;&#9;Einstellung nur, wenn es wirklich notwendig ist, zu ändern.&#10;&#9;&#9;&#9;Eine Änderung bringt eine deutliche Performance Einbuße.&#10;&#9;&#9;&#9;&#10;&#9;&#9;&#9;&lt;/p&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;&lt;i&gt;ALL &lt;/i&gt;liest die&#10;&#9;&#9;&#9;Daten aus der Datenbank und prüft alle Spalten, ob sich diese&#10;&#9;&#9;&#9;geändert haben. DIRTY&#10;&#9;&#9;&#9;liest auch die Daten aus, validiert aber nur Spalten, die sich&#10;&#9;&#9;&#9;geändert haben. Damit kann man konkurrierende Updates auf dem&#10;&#9;&#9;&#9;gleichen Datensatz durchführen, ohne dass es zu einer&#10;&#9;&#9;&#9;Ausnahme kommt. &#10;&#9;&#9;&#9;&lt;/p&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;Mehr Informationen zu Optimistic-Locking gibt es im&#10;&#9;&#9;&#9;Kapitel 8.5.1.&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;)&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr&gt;&#10;&lt;td valign="top" colspan="2"&gt;&#10;&#9;&#9;&#9;&lt;p lang="de-DE"&gt;@Entity&lt;/p&gt;&#10;&#9;&#9;&#9;&lt;p lang="de-DE"&gt;@org.hibernate.annotations.Entity(mutable&#10;&#9;&#9;&#9;= true, dynamicInsert = true, &lt;br&gt; dynamicUpdate = true,&#10;&#9;&#9;&#9;selectBeforeUpdate = false, &lt;br&gt; polymorphism =&#10;&#9;&#9;&#9;PolymorphismType.IMPLICIT, &lt;br&gt; persister = "customPersister",&#10;&#9;&#9;&#9;&lt;br&gt; optimisticLock = OptimisticLockType.VERSION)&lt;/p&gt;&#10;&#9;&#9;&#9;&lt;p lang="de-DE"&gt;public&#10;&#9;&#9;&#9;class Tiger implements Serializable {&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;/tbody&gt;&#10;&lt;/table&gt;</description></item><item><title>@org.hibernate.annotations.Formula</title><link>https://www.laliluna.de/articles/java-persistence-hibernate/org.hibernate.annotations.formula.html</link><pubDate>Thu, 01 Jan 2009 00:00:00 +0000</pubDate><guid>https://www.laliluna.de/articles/java-persistence-hibernate/org.hibernate.annotations.formula.html</guid><description>&lt;img align="right" src="https://www.laliluna.de/images/hibernate-buch/9783898426350-small.gif" alt="hibernate buch cover klein"&gt;&lt;p&gt;Extract of the annotation reference in the Hibernate Developer Guide by example&lt;/p&gt;&#10;&lt;p&gt;Extensive, easy-to-follow introduction to Hibernate 3 including complete working examples. Integration of Hibernate with other technologies like Spring, EJB3, Struts and JavaServer Faces (MyFaces) is explained.&lt;/p&gt;&#10;&lt;p&gt;It is available as PDF in English language.&lt;br&gt;A German paper book was published by the Galileo Verlag.&lt;/p&gt;&#10;&lt;p&gt;&lt;a href="https://www.laliluna.de/hibernate-3-jpa-book-ebook.html"&gt;Get more information.&lt;/a&gt;&lt;/p&gt;&#10;&#10;&#10;&lt;table cellspacing="0" cellpadding="4" border="1"&gt;&#10;&lt;col&gt;&#10;&lt;col&gt;&#10;&lt;tbody&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;&lt;b&gt;@org.hibernate.annotations.Formula(&lt;/b&gt;&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;wird verwendet, um durch die Datenbank eine Formel&#10;&#9;&#9;&#9;berechnen zu lassen; Das Attribut kann nur gelesen und nicht&#10;&#9;&#9;&#9;geschrieben werden.&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;value="10 * table_column + 5"&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;eine Formel&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;)&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr&gt;&#10;&lt;td valign="top" colspan="2"&gt;&#10;&#9;&#9;&#9;&lt;p lang="de-DE"&gt;@Formula("10&#10;&#9;&#9;&#9;* id + 5")&lt;/p&gt;&#10;&#9;&#9;&#9;&lt;p lang="de-DE"&gt;&#9;public&#10;&#9;&#9;&#9;Integer formula;&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;/tbody&gt;&#10;&lt;/table&gt;</description></item><item><title>@org.hibernate.annotations.GenericGenerator</title><link>https://www.laliluna.de/articles/java-persistence-hibernate/org.hibernate.annotations.genericgenerator.html</link><pubDate>Thu, 01 Jan 2009 00:00:00 +0000</pubDate><guid>https://www.laliluna.de/articles/java-persistence-hibernate/org.hibernate.annotations.genericgenerator.html</guid><description>&lt;img align="right" src="https://www.laliluna.de/images/hibernate-buch/9783898426350-small.gif" alt="hibernate buch cover klein"&gt;&lt;p&gt;Extract of the annotation reference in the Hibernate Developer Guide by example&lt;/p&gt;&#10;&lt;p&gt;Extensive, easy-to-follow introduction to Hibernate 3 including complete working examples. Integration of Hibernate with other technologies like Spring, EJB3, Struts and JavaServer Faces (MyFaces) is explained.&lt;/p&gt;&#10;&lt;p&gt;It is available as PDF in English language.&lt;br&gt;A German paper book was published by the Galileo Verlag.&lt;/p&gt;&#10;&lt;p&gt;&lt;a href="https://www.laliluna.de/hibernate-3-jpa-book-ebook.html"&gt;Get more information.&lt;/a&gt;&lt;/p&gt;&#10;&#10;&#10;&lt;table cellspacing="0" cellpadding="4" border="1"&gt;&#10;&lt;col&gt;&#10;&lt;col&gt;&#10;&lt;tbody&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;&lt;b&gt;@org.hibernate.annotations. GenericGenerator(&lt;/b&gt;&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;Hibernate spezifischer Generator, der von der&#10;&#9;&#9;&#9;Annotation &lt;i&gt;@GeneratedValue&lt;/i&gt; referenziert werden kann; Der&#10;&#9;&#9;&#9;Generator verwendet eine der in XML basierten Mapping möglichen&#10;&#9;&#9;&#9;Strategien, die in Kapitel 12.4 beschrieben worden sind.&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;name="generatorName",&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;Name des Generators, der in der Annotation&#10;&#9;&#9;&#9;&lt;i&gt;@GeneratedValue&lt;/i&gt; verwendet&#10;&#9;&#9;&#9;werden kann&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;strategy = "seqhilo",&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;legt die Strategie fest und kann eine der folgenden&#10;&#9;&#9;&#9;Werte haben: identity, sequence, seqhilo, guid, native, select,&#10;&#9;&#9;&#9;hilo, assigned, foreign, uuid, increment;&lt;/p&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;Detailbeschreibung in Kapitel 12.4&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;parameters = { @Parameter(name = "max_lo",&#10;&#9;&#9;&#9;value = "5") }&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;Array von &lt;i&gt;@Parameter;&lt;/i&gt;&#10;&#9;&#9;&#9;wird verwendet um die Id-Strategie zu konfigurieren&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;)&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr&gt;&#10;&lt;td valign="top" colspan="2"&gt;&#10;&#9;&#9;&#9;&lt;p lang="de-DE"&gt;@Id&lt;/p&gt;&#10;&#9;&#9;&#9;&lt;p lang="de-DE"&gt;&#9;@GenericGenerator(name&#10;&#9;&#9;&#9;= "aName", strategy = "seqhilo", parameters =&#10;&#9;&#9;&#9;{ @Parameter(name = "max_lo", value = "5") })&lt;/p&gt;&#10;&#9;&#9;&#9;&lt;p lang="de-DE"&gt;&#9;@GeneratedValue(generator&#10;&#9;&#9;&#9;= "aName")&lt;/p&gt;&#10;&#9;&#9;&#9;&lt;p lang="de-DE"&gt;&#9;private&#10;&#9;&#9;&#9;Integer id;&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;/tbody&gt;&#10;&lt;/table&gt;</description></item><item><title>@org.hibernate.annotations.Index</title><link>https://www.laliluna.de/articles/java-persistence-hibernate/org.hibernate.annotations.index.html</link><pubDate>Thu, 01 Jan 2009 00:00:00 +0000</pubDate><guid>https://www.laliluna.de/articles/java-persistence-hibernate/org.hibernate.annotations.index.html</guid><description>&lt;img align="right" src="https://www.laliluna.de/images/hibernate-buch/9783898426350-small.gif" alt="hibernate buch cover klein"&gt;&lt;p&gt;Extract of the annotation reference in the Hibernate Developer Guide by example&lt;/p&gt;&#10;&lt;p&gt;Extensive, easy-to-follow introduction to Hibernate 3 including complete working examples. Integration of Hibernate with other technologies like Spring, EJB3, Struts and JavaServer Faces (MyFaces) is explained.&lt;/p&gt;&#10;&lt;p&gt;It is available as PDF in English language.&lt;br&gt;A German paper book was published by the Galileo Verlag.&lt;/p&gt;&#10;&lt;p&gt;&lt;a href="https://www.laliluna.de/hibernate-3-jpa-book-ebook.html"&gt;Get more information.&lt;/a&gt;&lt;/p&gt;&#10;&#10;&lt;table cellspacing="0" cellpadding="0" border="1"&gt;&#10;&lt;col&gt;&#10;&lt;col&gt;&#10;&lt;tbody&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;&lt;b&gt;@org.hibernate.annotations.Index(&lt;/b&gt;&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;Hibernate Erweiterung zu EJB 3, definiert einen Index&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;name = "forestidx",&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;Name des Index&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;columnNames = {"colA","colB"}&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;Databankspalten, die im Index enthalten sind&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;)&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr&gt;&#10;&lt;td valign="top" colspan="2"&gt;&#10;&#9;&#9;&#9;&lt;p lang="de-DE"&gt;@Entity()&lt;/p&gt;&#10;&#9;&#9;&#9;&lt;p lang="de-DE"&gt;@javax.persistence.Table(name&#10;&#9;&#9;&#9;= "tableName", &lt;br&gt;uniqueConstraints = {&#10;&#9;&#9;&#9;@UniqueConstraint(columnNames = { "unique_column" }) })&lt;/p&gt;&#10;&#9;&#9;&#9;&lt;p lang="de-DE"&gt;@org.hibernate.annotations.Table(appliesTo&#10;&#9;&#9;&#9;= "tableName", &lt;br&gt;indexes = { @Index(name =&#10;&#9;&#9;&#9;"forestidx", columnNames = { "indexedcolumn"&#10;&#9;&#9;&#9;}) })&lt;/p&gt;&#10;&#9;&#9;&#9;&lt;p lang="de-DE"&gt;public&#10;&#9;&#9;&#9;class Garden implements Serializable {&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;/tbody&gt;&#10;&lt;/table&gt;</description></item><item><title>@org.hibernate.annotations.Parent</title><link>https://www.laliluna.de/articles/java-persistence-hibernate/org.hibernate.annotations.parent.html</link><pubDate>Thu, 01 Jan 2009 00:00:00 +0000</pubDate><guid>https://www.laliluna.de/articles/java-persistence-hibernate/org.hibernate.annotations.parent.html</guid><description>&lt;img align="right" src="https://www.laliluna.de/images/hibernate-buch/9783898426350-small.gif" alt="hibernate buch cover klein"&gt;&lt;p&gt;Extract of the annotation reference in the Hibernate Developer Guide by example&lt;/p&gt;&#10;&lt;p&gt;Extensive, easy-to-follow introduction to Hibernate 3 including complete working examples. Integration of Hibernate with other technologies like Spring, EJB3, Struts and JavaServer Faces (MyFaces) is explained.&lt;/p&gt;&#10;&lt;p&gt;It is available as PDF in English language.&lt;br&gt;A German paper book was published by the Galileo Verlag.&lt;/p&gt;&#10;&lt;p&gt;&lt;a href="https://www.laliluna.de/hibernate-3-jpa-book-ebook.html"&gt;Get more information.&lt;/a&gt;&lt;/p&gt;&#10;&lt;table cellspacing="0" cellpadding="4" border="1"&gt;&#10;&lt;col&gt;&#10;&lt;col&gt;&#10;&lt;tbody&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;&lt;b&gt;@org.hibernate.annotations.Parent&lt;/b&gt;&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;kann in einer Komponente verwendet werden, wenn ein&#10;&#9;&#9;&#9;Attribut die Oberklasse referenziert&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;Beispiel im Java-Package&#10;&#9;&#9;&#9;&lt;i&gt;de.laliluna.component.collection2.PizzaClient&lt;/i&gt;&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr&gt;&#10;&lt;td valign="top" colspan="2"&gt;&#10;&#9;&#9;&#9;&lt;p lang="de-DE"&gt;import&#10;&#9;&#9;&#9;org.hibernate.annotations.Parent;&lt;/p&gt;&#10;&#9;&#9;&#9;&lt;p lang="de-DE"&gt;@Embeddable&lt;/p&gt;&#10;&#9;&#9;&#9;&lt;p lang="de-DE"&gt;public&#10;&#9;&#9;&#9;class DeliveryAddress implements Serializable {&lt;/p&gt;&#10;&#9;&#9;&#9;&lt;p lang="de-DE"&gt;&#9;@Parent&lt;/p&gt;&#10;&#9;&#9;&#9;&lt;p lang="de-DE"&gt;&#9;private&#10;&#9;&#9;&#9;PizzaClient client;&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;/tbody&gt;&#10;&lt;/table&gt;</description></item><item><title>@org.hibernate.annotations.Table</title><link>https://www.laliluna.de/articles/java-persistence-hibernate/org.hibernate.annotations.table.html</link><pubDate>Thu, 01 Jan 2009 00:00:00 +0000</pubDate><guid>https://www.laliluna.de/articles/java-persistence-hibernate/org.hibernate.annotations.table.html</guid><description>&lt;img align="right" src="https://www.laliluna.de/images/hibernate-buch/9783898426350-small.gif" alt="hibernate buch cover klein"&gt;&lt;p&gt;Extract of the annotation reference in the Hibernate Developer Guide by example&lt;/p&gt;&#10;&lt;p&gt;Extensive, easy-to-follow introduction to Hibernate 3 including complete working examples. Integration of Hibernate with other technologies like Spring, EJB3, Struts and JavaServer Faces (MyFaces) is explained.&lt;/p&gt;&#10;&lt;p&gt;It is available as PDF in English language.&lt;br&gt;A German paper book was published by the Galileo Verlag.&lt;/p&gt;&#10;&lt;p&gt;&lt;a href="https://www.laliluna.de/hibernate-3-jpa-book-ebook.html"&gt;Get more information.&lt;/a&gt;&lt;/p&gt;&#10;&#10;&lt;table cellspacing="0" cellpadding="0" border="1"&gt;&#10;&lt;col&gt;&#10;&lt;col&gt;&#10;&lt;tbody&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;&lt;b&gt;@org.hibernate.annotations.Table(&lt;/b&gt;&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;Hibernate Erweiterung zu EJB 3, erstellt einen Index,&#10;&#9;&#9;&#9;wenn Hibernate Tabellen erzeugt. Kann mit den Annotations&#10;&#9;&#9;&#9;&lt;i&gt;@javax.persistence.Table&lt;/i&gt;&lt;b&gt; u&lt;/b&gt;nd&#10;&#9;&#9;&#9;&lt;i&gt;@javax.persistence.SecondaryTable &lt;/i&gt;verwendet&#10;&#9;&#9;&#9;werden.&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;appliesTo = "tableName", &#10;&#9;&#9;&#9;&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;Name der Datenbanktabelle&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;indexes = { @Index(name = "forest_idx",&#10;&#9;&#9;&#9;columnNames = {"indexedColumn"}) }&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;ein Array von &lt;i&gt;@Index&lt;/i&gt;&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;tr valign="top"&gt;&#10;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;p&gt;&#10;&#9;&#9;&#9;)&lt;/p&gt;&#10;&#9;&#9;&lt;/td&gt;&#10;&#9;&#9;&lt;td&gt;&#10;&#9;&#9;&#9;&lt;/td&gt;&#10;&#9;&lt;/tr&gt;&#10;&lt;/tbody&gt;&#10;&lt;/table&gt;</description></item><item><title>Hibernate annotation reference (German)</title><link>https://www.laliluna.de/articles/java-persistence-hibernate/annotation-reference.html</link><pubDate>Thu, 01 Jan 2009 00:00:00 +0000</pubDate><guid>https://www.laliluna.de/articles/java-persistence-hibernate/annotation-reference.html</guid><description>&lt;p&gt;This are includes a reference of all Hibernate, JPA and EJB annotations. It is provided in German&#10; only.&lt;/p&gt;&#10;&#10;&lt;fieldset&gt;&#10; &lt;legend&gt;@javax.persistence.AttributeOverride&lt;/legend&gt;&#10; &lt;a href="https://www.laliluna.de/articles/java-persistence-hibernate/javax.persistence.attributeoverride.html"&gt;Description of&#10; @javax.persistence.AttributeOverride&lt;/a&gt;&#10;&lt;/fieldset&gt;&#10;&lt;fieldset&gt;&#10; &lt;legend&gt;@javax.persistence.AttributeOverrides&lt;/legend&gt;&#10; &lt;a href="https://www.laliluna.de/articles/java-persistence-hibernate/javax.persistence.attributeoverrides.html"&gt;Description of&#10; @javax.persistence.AttributeOverrides&lt;/a&gt;&#10;&lt;/fieldset&gt;&#10;&lt;fieldset&gt;&#10; &lt;legend&gt;@javax.persistence.Basic&lt;/legend&gt;&#10; &lt;a href="https://www.laliluna.de/articles/java-persistence-hibernate/javax.persistence.basic.html"&gt;Description of @javax.persistence.Basic&lt;/a&gt;&#10;&lt;/fieldset&gt;&#10;&lt;fieldset&gt;&#10; &lt;legend&gt;@javax.persistence.Column&lt;/legend&gt;&#10; &lt;a href="https://www.laliluna.de/articles/java-persistence-hibernate/javax.persistence.column.html"&gt;Description of @javax.persistence.Column&lt;/a&gt;&#10;&lt;/fieldset&gt;&#10;&lt;fieldset&gt;&#10; &lt;legend&gt;@javax.persistence.DiscriminatorColumn&lt;/legend&gt;&#10; &lt;a href="https://www.laliluna.de/articles/java-persistence-hibernate/javax.persistence.discriminatorcolumn.html"&gt;Description of&#10; @javax.persistence.DiscriminatorColumn&lt;/a&gt;&#10;&lt;/fieldset&gt;&#10;&lt;fieldset&gt;&#10; &lt;legend&gt;@javax.persistence.DiscriminatorValue&lt;/legend&gt;&#10; &lt;a href="https://www.laliluna.de/articles/java-persistence-hibernate/javax.persistence.discriminatorvalue.html"&gt;Description of&#10; @javax.persistence.DiscriminatorValue&lt;/a&gt;&#10;&lt;/fieldset&gt;&#10;&lt;fieldset&gt;&#10; &lt;legend&gt;@javax.persistence.Embeddable&lt;/legend&gt;&#10; &lt;a href="https://www.laliluna.de/articles/java-persistence-hibernate/javax.persistence.embeddable.html"&gt;Description of @javax.persistence.Embeddable&lt;/a&gt;&#10;&lt;/fieldset&gt;&#10;&lt;fieldset&gt;&#10; &lt;legend&gt;@javax.persistence.Embedded&lt;/legend&gt;&#10; &lt;a href="https://www.laliluna.de/articles/java-persistence-hibernate/javax.persistence.embedded.html"&gt;Description of @javax.persistence.Embedded&lt;/a&gt;&#10;&lt;/fieldset&gt;&#10;&lt;fieldset&gt;&#10; &lt;legend&gt;@javax.persistence.EmbeddedId&lt;/legend&gt;&#10; &lt;a href="https://www.laliluna.de/articles/java-persistence-hibernate/javax.persistence.embeddedid.html"&gt;Description of @javax.persistence.EmbeddedId&lt;/a&gt;&#10;&lt;/fieldset&gt;&#10;&lt;fieldset&gt;&#10; &lt;legend&gt;@javax.persistence.Entity&lt;/legend&gt;&#10; &lt;a href="https://www.laliluna.de/articles/java-persistence-hibernate/javax.persistence.entity.html"&gt;Description of @javax.persistence.Entity&lt;/a&gt;&#10;&lt;/fieldset&gt;&#10;&lt;fieldset&gt;&#10; &lt;legend&gt;@javax.persistence.Enumerated&lt;/legend&gt;&#10; &lt;a href="https://www.laliluna.de/articles/java-persistence-hibernate/javax.persistence.enumerated.html"&gt;Description of @javax.persistence.Enumerated&lt;/a&gt;&#10;&lt;/fieldset&gt;&#10;&lt;fieldset&gt;&#10; &lt;legend&gt;@javax.persistence.GeneratedValue&lt;/legend&gt;&#10; &lt;a href="https://www.laliluna.de/articles/java-persistence-hibernate/javax.persistence.generatedvalue.html"&gt;Description of @javax.persistence.GeneratedValue&lt;/a&gt;&#10;&lt;/fieldset&gt;&#10;&lt;fieldset&gt;&#10; &lt;legend&gt;@javax.persistence.Id&lt;/legend&gt;&#10; &lt;a href="https://www.laliluna.de/articles/java-persistence-hibernate/javax.persistence.id.html"&gt;Description of @javax.persistence.Id&lt;/a&gt;&#10;&lt;/fieldset&gt;&#10;&lt;fieldset&gt;&#10; &lt;legend&gt;@javax.persistence.IdClass&lt;/legend&gt;&#10; &lt;a href="https://www.laliluna.de/articles/java-persistence-hibernate/javax.persistence.idclass.html"&gt;Description of @javax.persistence.IdClass&lt;/a&gt;&#10;&lt;/fieldset&gt;&#10;&lt;fieldset&gt;&#10; &lt;legend&gt;@javax.persistence.Inheritance&lt;/legend&gt;&#10; &lt;a href="https://www.laliluna.de/articles/java-persistence-hibernate/javax.persistence.inheritance.html"&gt;Description of @javax.persistence.Inheritance&lt;/a&gt;&#10;&lt;/fieldset&gt;&#10;&lt;fieldset&gt;&#10; &lt;legend&gt;@javax.persistence.Lob&lt;/legend&gt;&#10; &lt;a href="https://www.laliluna.de/articles/java-persistence-hibernate/javax.persistence.lob.html"&gt;Description of @javax.persistence.Lob&lt;/a&gt;&#10;&lt;/fieldset&gt;&#10;&lt;fieldset&gt;&#10; &lt;legend&gt;@javax.persistence.ManyToMany&lt;/legend&gt;&#10; &lt;a href="https://www.laliluna.de/articles/java-persistence-hibernate/javax.persistence.manytomany.html"&gt;Description of @javax.persistence.ManyToMany&lt;/a&gt;&#10;&lt;/fieldset&gt;&#10;&lt;fieldset&gt;&#10; &lt;legend&gt;@javax.persistence.ManyToOne&lt;/legend&gt;&#10; &lt;a href="https://www.laliluna.de/articles/java-persistence-hibernate/javax.persistence.manytoone.html"&gt;Description of @javax.persistence.ManyToOne&lt;/a&gt;&#10;&lt;/fieldset&gt;&#10;&lt;fieldset&gt;&#10; &lt;legend&gt;@javax.persistence.MappedSuperclass&lt;/legend&gt;&#10; &lt;a href="https://www.laliluna.de/articles/java-persistence-hibernate/javax.persistence.mappedsuperclass.html"&gt;Description of&#10; @javax.persistence.MappedSuperclass&lt;/a&gt;&#10;&lt;/fieldset&gt;&#10;&lt;fieldset&gt;&#10; &lt;legend&gt;@javax.persistence.OneToMany&lt;/legend&gt;&#10; &lt;a href="https://www.laliluna.de/articles/java-persistence-hibernate/javax.persistence.onetomany.html"&gt;Description of @javax.persistence.OneToMany&lt;/a&gt;&#10;&lt;/fieldset&gt;&#10;&lt;fieldset&gt;&#10; &lt;legend&gt;@javax.persistence.OneToOne&lt;/legend&gt;&#10; &lt;a href="https://www.laliluna.de/articles/java-persistence-hibernate/javax.persistence.onetoone.html"&gt;Description of @javax.persistence.OneToOne&lt;/a&gt;&#10;&lt;/fieldset&gt;&#10;&lt;fieldset&gt;&#10; &lt;legend&gt;@javax.persistence.SecondaryTable&lt;/legend&gt;&#10; &lt;a href="https://www.laliluna.de/articles/java-persistence-hibernate/javax.persistence.secondarytable.html"&gt;Description of @javax.persistence.SecondaryTable&lt;/a&gt;&#10;&lt;/fieldset&gt;&#10;&lt;fieldset&gt;&#10; &lt;legend&gt;@javax.persistence.SequenceGenerator&lt;/legend&gt;&#10; &lt;a href="https://www.laliluna.de/articles/java-persistence-hibernate/javax.persistence.sequencegenerator.html"&gt;Description of&#10; @javax.persistence.SequenceGenerator&lt;/a&gt;&#10;&lt;/fieldset&gt;&#10;&lt;fieldset&gt;&#10; &lt;legend&gt;@javax.persistence.Table&lt;/legend&gt;&#10; &lt;a href="https://www.laliluna.de/articles/java-persistence-hibernate/javax.persistence.table.html"&gt;Description of @javax.persistence.Table&lt;/a&gt;&#10;&lt;/fieldset&gt;&#10;&lt;fieldset&gt;&#10; &lt;legend&gt;@javax.persistence.TableGenerator&lt;/legend&gt;&#10; &lt;a href="https://www.laliluna.de/articles/java-persistence-hibernate/javax.persistence.tablegenerator.html"&gt;Description of @javax.persistence.TableGenerator&lt;/a&gt;&#10;&lt;/fieldset&gt;&#10;&lt;fieldset&gt;&#10; &lt;legend&gt;@javax.persistence.Temporal&lt;/legend&gt;&#10; &lt;a href="https://www.laliluna.de/articles/java-persistence-hibernate/javax.persistence.temporal.html"&gt;Description of @javax.persistence.Temporal&lt;/a&gt;&#10;&lt;/fieldset&gt;&#10;&lt;fieldset&gt;&#10; &lt;legend&gt;@javax.persistence.Transient&lt;/legend&gt;&#10; &lt;a href="https://www.laliluna.de/articles/java-persistence-hibernate/javax.persistence.transient.html"&gt;Description of @javax.persistence.Transient&lt;/a&gt;&#10;&lt;/fieldset&gt;&#10;&lt;fieldset&gt;&#10; &lt;legend&gt;@javax.persistence.UniqueConstraint&lt;/legend&gt;&#10; &lt;a href="https://www.laliluna.de/articles/java-persistence-hibernate/javax.persistence.uniqueconstraint.html"&gt;Description of&#10; @javax.persistence.UniqueConstraint&lt;/a&gt;&#10;&lt;/fieldset&gt;&#10;&lt;fieldset&gt;&#10; &lt;legend&gt;@javax.persistence.Version&lt;/legend&gt;&#10; &lt;a href="https://www.laliluna.de/articles/java-persistence-hibernate/javax.persistence.version.html"&gt;Description of @javax.persistence.Version&lt;/a&gt;&#10;&lt;/fieldset&gt;&#10;&lt;fieldset&gt;&#10; &lt;legend&gt;@org.hibernate.annotations.CollectionOfElement&lt;/legend&gt;&#10; &lt;a href="https://www.laliluna.de/articles/java-persistence-hibernate/org.hibernate.annotations.collectionofelement.html"&gt;Description of&#10; @org.hibernate.annotations.CollectionOfElement&lt;/a&gt;&#10;&lt;/fieldset&gt;&#10;&lt;fieldset&gt;&#10; &lt;legend&gt;@org.hibernate.annotations.DiscriminatorFormula&lt;/legend&gt;&#10; &lt;a href="https://www.laliluna.de/articles/java-persistence-hibernate/org.hibernate.annotations.discriminatorformula.html"&gt;Description of&#10; @org.hibernate.annotations.DiscriminatorFormula&lt;/a&gt;&#10;&lt;/fieldset&gt;&#10;&lt;fieldset&gt;&#10; &lt;legend&gt;@org.hibernate.annotations.Entity&lt;/legend&gt;&#10; &lt;a href="https://www.laliluna.de/articles/java-persistence-hibernate/org.hibernate.annotations.entity.html"&gt;Description of @org.hibernate.annotations.Entity&lt;/a&gt;&#10;&lt;/fieldset&gt;&#10;&lt;fieldset&gt;&#10; &lt;legend&gt;@org.hibernate.annotations.Formula&lt;/legend&gt;&#10; &lt;a href="https://www.laliluna.de/articles/java-persistence-hibernate/org.hibernate.annotations.formula.html"&gt;Description of&#10; @org.hibernate.annotations.Formula&lt;/a&gt;&#10;&lt;/fieldset&gt;&#10;&lt;fieldset&gt;&#10; &lt;legend&gt;@org.hibernate.annotations.GenericGenerator&lt;/legend&gt;&#10; &lt;a href="https://www.laliluna.de/articles/java-persistence-hibernate/org.hibernate.annotations.genericgenerator.html"&gt;Description of&#10; @org.hibernate.annotations.GenericGenerator&lt;/a&gt;&#10;&lt;/fieldset&gt;&#10;&lt;fieldset&gt;&#10; &lt;legend&gt;@org.hibernate.annotations.Index&lt;/legend&gt;&#10; &lt;a href="https://www.laliluna.de/articles/java-persistence-hibernate/org.hibernate.annotations.index.html"&gt;Description of @org.hibernate.annotations.Index&lt;/a&gt;&#10;&lt;/fieldset&gt;&#10;&lt;fieldset&gt;&#10; &lt;legend&gt;@org.hibernate.annotations.Parent&lt;/legend&gt;&#10; &lt;a href="https://www.laliluna.de/articles/java-persistence-hibernate/org.hibernate.annotations.parent.html"&gt;Description of @org.hibernate.annotations.Parent&lt;/a&gt;&#10;&lt;/fieldset&gt;&#10;&lt;fieldset&gt;&#10; &lt;legend&gt;@org.hibernate.annotations.Table&lt;/legend&gt;&#10; &lt;a href="https://www.laliluna.de/articles/java-persistence-hibernate/org.hibernate.annotations.table.html"&gt;Description of @org.hibernate.annotations.Table&lt;/a&gt;&#10;&lt;/fieldset&gt;</description></item><item><title>Java Database Development for web applications</title><link>https://www.laliluna.de/articles/java-persistence-hibernate/java-database-development.html</link><pubDate>Thu, 01 Jan 2009 00:00:00 +0000</pubDate><guid>https://www.laliluna.de/articles/java-persistence-hibernate/java-database-development.html</guid><description>&lt;ul&gt;&#10;&lt;li&gt;&#10;&lt;p &gt;How to access databases in web applications&lt;/p&gt;&#10;&#9;&lt;/li&gt;&#10;&lt;li&gt;&#10;&lt;p &gt;Introductions to available technologies and why&#10;&#9;to use them&lt;/p&gt;&#10;&#9;&lt;/li&gt;&#10;&lt;li&gt;&#10;&lt;p &gt;Short comparison of EJB, Hibernate and JDO&lt;/p&gt;&#10;&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;h2&gt;Introduction&lt;/h2&gt;&#10;&lt;p &gt;In this article I will explain why you should not&#10;develop in java as some people do it with perl or php. I will show you&#10;why it is useful to separate dababase and application logic and&#10;finally what technologies you may use.&lt;/p&gt;&#10;&lt;p &gt;In terms: You will find information about Object&#10;Relational Mapping, Multi-Tier development, and persistence&#10;technologies like Enterprise Java Beans and Hibernate.&lt;/p&gt;</description></item><item><title>First Hibernate example - tutorial</title><link>https://www.laliluna.de/articles/java-persistence-hibernate/first-hibernate-example-tutorial.html</link><pubDate>Sat, 09 Feb 2008 00:00:00 +0000</pubDate><guid>https://www.laliluna.de/articles/java-persistence-hibernate/first-hibernate-example-tutorial.html</guid><description>&lt;p &gt;&lt;span &gt;This&#10;tutorial shows a simple example using Hibernate. We will create a&#10;simple Java application, showing how Hibernate works.&lt;/span&gt; &#10;&lt;/p&gt;&#10;&#10;&#10;&lt;h2 &gt;General&lt;/h2&gt;&#10;&lt;p &gt;&lt;b&gt;Author:&#10;&lt;/b&gt;Sebastian Hennebrueder&lt;/p&gt;&#10;&lt;p &gt;&lt;b&gt;Date&lt;/b&gt;:&#10;&#10;&lt;/p&gt;&#10;&lt;p &gt;First&#10;edition 2005&lt;/p&gt;&#10;&lt;p &gt;updated&#10;February, 9th 2008&lt;/p&gt;&#10;&lt;p &gt;&lt;b&gt;Used&#10;software and frameworks&lt;/b&gt;&lt;/p&gt;&#10;&lt;p &gt;Eclipse&#10;3.x&lt;/p&gt;&#10;&lt;p &gt;MyEclipse&#10;or alternatively Hibernate Tools are recommended but optional&lt;/p&gt;&#10;&lt;p &gt;Hibernate&#10;3.x (I used 3.3)&lt;/p&gt;&#10;&lt;p &gt;&lt;b&gt;Source&#10;code:&#10;&lt;a href="https://www.laliluna.de/download/first-hibernate-example-tutorial.zip"&gt;http://www.laliluna.de/download/first-hibernate-example-tutorial.zip&lt;/a&gt;&lt;/b&gt;&lt;/p&gt;&#10;&lt;p &gt;The&#10;sources does not include the libraries. Download the libraries from&#10;hibernate.org and your database driver and add them to the project as&#10;explained below! The example must be configured to work with your&#10;database settings! Read the tutorial.&lt;/p&gt;</description></item><item><title>Hibernate id equals and hashcode</title><link>https://www.laliluna.de/articles/2007/09/05/hibernate-id-equals-hashcode.html</link><pubDate>Wed, 05 Sep 2007 00:00:00 +0000</pubDate><guid>https://www.laliluna.de/articles/2007/09/05/hibernate-id-equals-hashcode.html</guid><description>&lt;p&gt;A mapped entity has a database identity. This is the primary key of the table.&#10;Two entries are the same, if they both have the same Id.&lt;/p&gt;&#10;&lt;p&gt;A Java class without implementation of equals/hashCode equals only another class if they both actually point to the same instance.&lt;/p&gt;&#10;&lt;p&gt;To avoid to have multiple instance with the same database id in memory, we need to implement equals and hashcode. This actually not requirement when using Hibernate but might prevent problems in some scenarios.&lt;/p&gt;</description></item><item><title>Glassfish SunOne Toplink Postgresql</title><link>https://www.laliluna.de/articles/2007/06/22/glassfish_sunone_toplink_postgresql.html</link><pubDate>Fri, 22 Jun 2007 00:00:00 +0000</pubDate><guid>https://www.laliluna.de/articles/2007/06/22/glassfish_sunone_toplink_postgresql.html</guid><description>&lt;h2&gt;Administration of Glassfish and SunOne&lt;/h2&gt;&#10;&lt;p&gt;Glassfish is the &amp;#8220;open source release&amp;#8221; of the SunOne application server. The administration interface is available on a different port.&#10;http://localhost:4848/&#10;The default user and password is admin and admin.&lt;/p&gt;&#10;&lt;h2&gt;Setting up a PostgreSQL connection pool.&lt;/h2&gt;&#10;&lt;p&gt;Copy the database driver to SERVER_HOME/domains/domain/lib/ext and restart the server.&lt;/p&gt;&#10;&lt;p&gt;In the administration area click on resources &amp;#8594; jdbc.&#10;First you must set up a connection pool and then a datasource referencing the pool.&#10;I created a ConnectionPoolDatasource and used org.postgresql.ds.PGPoolingDataSource. Don&amp;#8217;t forget to add properties add the end of the dialog.&lt;/p&gt;</description></item><item><title>Problem using Hibernate Annotations</title><link>https://www.laliluna.de/articles/2007/03/06/hibernate-annotation-problem.html</link><pubDate>Tue, 06 Mar 2007 00:00:00 +0000</pubDate><guid>https://www.laliluna.de/articles/2007/03/06/hibernate-annotation-problem.html</guid><description>&lt;p&gt;Column annotation are ignored, if you mix the targets where you place them.&lt;/p&gt;&#10;&lt;p&gt;I assigned the @Id annotation to the field and the other annotations to a method. If the @Id annotation is assigned to a field, further method annotations are ignored and vice versa.&lt;/p&gt;&#10;&lt;p&gt;Below you can see an example class explaining the problem. The @Column annotation of getNameMethod is ignored.&lt;/p&gt;&#10;&lt;pre class="language-java"&gt;&#10;package de.laliluna.annotation;&#10;&#10;import java.io.Serializable;&#10;@Entity&#10;public class SimpleBean implements Serializable {&#10;&#10; public static void main(String[] args) {&#10; new SchemaExport(new AnnotationConfiguration().configure()).create(true, false);&#10;&#10; }&#10;&#10; @Id&#10; private Integer id;&#10;&#10; private String nameMethod;&#10;&#10; @Column(name = "name_field")&#10; private String nameField;&#10;&#10; public Integer getId() {&#10; return id;&#10; }&#10;&#10; public void setId(Integer id) {&#10; this.id = id;&#10; }&#10;&#10; public String getNameField() {&#10; return nameField;&#10; }&#10;&#10; public void setNameField(String nameField) {&#10; this.nameField = nameField;&#10; }&#10;&#10; @Column(name = "name_method")&#10; public String getNameMethod() {&#10; return nameMethod;&#10; }&#10;&#10; public void setNameMethod(String nameMethod) {&#10; this.nameMethod = nameMethod;&#10; }&#10;&#10;}&#10;&lt;/pre&gt;</description></item><item><title>Struts Hibernate Integration Tutorial</title><link>https://www.laliluna.de/articles/java-persistence-hibernate/struts-1-hibernate-integration-tutorial-en.html</link><pubDate>Mon, 02 Jan 2006 00:00:00 +0000</pubDate><guid>https://www.laliluna.de/articles/java-persistence-hibernate/struts-1-hibernate-integration-tutorial-en.html</guid><description>&lt;h2&gt;&#10;&lt;a name="mozTocId576609"&gt;&lt;/a&gt;First steps using&#10;Struts and Hibernate&lt;/h2&gt;&#10;&lt;p&gt;In&#10;this tutorial we will show how the Web Framework Struts and the&#10;Database Persistence Solution Hibernate can be used together. Though&#10;we explain some basic, you should try the basic tutorials for each&#10;technology first when you are a beginner.&lt;/p&gt;&#10;&lt;p class="comment-western"&gt;&lt;b&gt;Do you need expert help or consulting?&#10;Get it at &lt;/b&gt;&lt;a href="https://www.laliluna.de/"&gt;&lt;b&gt;http://www.laliluna.de&lt;br&gt;&lt;br&gt;&lt;/b&gt;&lt;/a&gt;&lt;b&gt;In-depth,&#10;detailed and easy-to-follow Tutorials&lt;/b&gt; for JSP, JavaServer Faces,&#10;Struts, Spring, Hibernate and EJB&lt;br&gt;&lt;br&gt;&lt;b&gt;Seminars&#10;and Education&lt;/b&gt; at reasonable prices on a wide range of Java&#10;Technologies, Design Patterns, and Enterprise Best Practices Improve&#10;your development quality&lt;br&gt;&lt;br&gt;&lt;b&gt;An hour of support&lt;/b&gt; can save&#10;you a lot of time - Code and Design Reviews to insure that the best&#10;practices are being followed! Reduce solving and testing&#10;time&lt;br&gt;&lt;br&gt;&lt;b&gt;Consulting on Java technologies&lt;/b&gt; Get to know best&#10;suitable libraries and technologies&lt;/p&gt;</description></item><item><title>What is Hibernate tutorial?</title><link>https://www.laliluna.de/articles/java-persistence-hibernate/what-is-hibernate.html</link><pubDate>Fri, 25 Feb 2005 00:00:00 +0000</pubDate><guid>https://www.laliluna.de/articles/java-persistence-hibernate/what-is-hibernate.html</guid><description>&lt;p &gt;This&#10;tutorial explains what Hibernate is and will show some examples why&#10;it is useful to use Hibernate.&lt;/p&gt;&#10;&lt;h2&gt;Generals&lt;/h2&gt;&#10;&lt;p&gt;&lt;b&gt;Author&lt;/b&gt;:&#10;&#10;&lt;/p&gt;&#10;&lt;p&gt;Sebastian&#10;Hennebrueder&lt;/p&gt;&#10;&#10;&lt;a href="https://www.laliluna.de/tutorials.html"&gt;http://www.laliluna.de/tutorials.html&lt;/a&gt;&#10;&#10;&lt;p&gt;&lt;b&gt;Date&lt;/b&gt;:&#10;&#10;&lt;/p&gt;&#10;&lt;p&gt;February,&#10;25&lt;sup&gt;th&lt;/sup&gt; 2005&lt;/p&gt;&#10;&#10;&lt;p&gt;&lt;b&gt;PDF Version des Tutorials:&lt;/b&gt;&lt;/p&gt;&#10;&lt;p&gt;&lt;a href="https://www.laliluna.de/download/what-is-hibernate-tutorial-en.pdf"&gt;http://www.laliluna.de/assets/tutorials/what-is-hibernate-tutorial-en.pdf&lt;/a&gt;&lt;/p&gt;&#10;&#10;&lt;h2&gt;Main features&lt;/h2&gt;&#10;&lt;p&gt;Hibernate&#10;is a solution for object relational mapping and a persistence&#10;management solution or persistent layer. This is probably not&#10;understandable for anybody learning Hibernate.&lt;/p&gt;&#10;&#10;&lt;p&gt;What&#10;you can imagine is probably that you have your application with some&#10;functions (business logic) and you want to save data in a database.&#10;When you use Java all the business logic normally works with objects&#10;of different class types. Your database tables are not at all&#10;objects.&#10;&lt;/p&gt;</description></item></channel></rss>