@javax.persistence.MappedSuperclass

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.MappedSuperclass

definiert die Oberklasse einer Vererbungshierarchie, in der diese nicht selber gespeichert oder verwendet wird; Die Unterklassen speichern selbstverst�ndlich die geerbten Attribute.

Beispiel im Java-Package de.laliluna.inheritance.mappedsuperclass.*

@MappedSuperclass

public class MusicBand implements Serializable { .......


@Entity

@SequenceGenerator(name = "musicband_seq", sequenceName = "musicband_id_seq")

public class SoftrockGroup extends MusicBand{ ......