@javax.persistence.DiscriminatorValue

hibernate buch cover klein

Extract of the annotation reference in the Hibernate Developer Guide by example

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.

It is available as PDF in English language.
A German paper book was published by the Galileo Verlag.

Get more information.

@javax.persistence. DiscriminatorValue(

optional, wird mit der Vererbungsstrategie InheritanceType.SINGLE_TABLE verwendet; legt fest welcher Wert für eine Klasse in die Discriminator Spalte geschrieben wird; Vorgabewert: Klassenname

value=�Flower�

ein eindeutiger Name

)


@Entity

@DiscriminatorValue("Flower")

public class Flower extends Plant {