Top Description Methods
org.hibernate.mapping

public Interface AttributeContainer

Known Direct Implementers
org.hibernate.mapping.Join, org.hibernate.mapping.PersistentClass

Identifies a mapping model object which may have attributes (fields or properties). Abstracts over PersistentClass and Join.

API Note

This model makes sense in hbm.xml mappings where a <property/> element may occur as a child of a <join/>. In annotations, and in orm.xml, a property cannot be said to itself belong to a secondary table, instead its columns are mapped to the table explicitly. In fact, the old hbm.xml model was more natural when it came to handling <column/> and especially <formula/> mappings in secondary tables. There was no need to repetitively write @Column(table="secondary"). Granted, it does sound strange to say that a Java property "belongs" to a secondary table.

Author
Steve Ebersole

Method Summary

Modifier and TypeMethod and Description
public void
addProperty(Property property)

Add a property to this PersistentClass or Join.

public boolean
contains(Property property)

public Table

Method Detail

addPropertyback to summary
public void addProperty(Property property)

Add a property to this PersistentClass or Join.

containsback to summary
public boolean contains(Property property)
getTableback to summary
public Table getTable()