Wednesday, 31 October 2012

What are Collection types in Hibernate?


  • ArrayType,
    Constructor: ArrayType(String role, String propertyRef, Class elementClass, boolean isEmbeddedInXML)
  • BagType,
    Constructor: BagType(String role, String propertyRef, boolean isEmbeddedInXML)
  • CustomCollectionType, A custom type for mapping user-written classes that implement PersistentCollection
    Constructor: CustomCollectionType(Class userTypeClass, String role, String foreignKeyPropertyName, boolean isEmbeddedInXML)
  • IdentifierBagType,
    Constructor: IdentifierBagType(String role, String propertyRef, boolean isEmbeddedInXML)
  • ListType,
    Constructor: ListType(String role, String propertyRef, boolean isEmbeddedInXML)
  • MapType,
    Constructor: MapType(String role, String propertyRef, boolean isEmbeddedInXML)
  • SetType
    Constructor: SetType(String role, String propertyRef, boolean isEmbeddedInXML)

No comments:

Post a Comment

What is Map Collection?

A map collection refers to a set of maps that are compiled and organized for a specific purpose, such as research, education, or preservatio...