Package org.hibernate.mapping
Interface AttributeContainer
-
- All Known Implementing Classes:
Join
,JoinedSubclass
,PersistentClass
,RootClass
,SingleTableSubclass
,Subclass
,UnionSubclass
public interface AttributeContainer
Identifies a mapping model object which may have attributes (fields or properties). Abstracts overPersistentClass
andJoin
.- 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 inorm.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 oldhbm.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.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addProperty(Property property)
Add a property to thisPersistentClass
orJoin
.boolean
contains(Property property)
Table
getTable()
-
-
-
Method Detail
-
addProperty
void addProperty(Property property)
Add a property to thisPersistentClass
orJoin
.
-
contains
boolean contains(Property property)
-
getTable
Table getTable()
-
-