Relationships
Entity relationships let you define an association between two entity types.
One To One
property name = "Address"
fieldtype = "one-to-one"
class = "Address";property name = "Address"
fieldtype = "one-to-one"
class = "Address"
lazy = "false";One To Many
class entityName="User" persistent="true"{
property name = "posts"
fieldtype = "one-to-many"
class = "Post"
fkcolumn = "author_id";
}Many To One
Many To Many
Singular Name
Lazy
Relationship Methods
Method
Description
Relationship types
One-To-One Example
One-To-Many Example
Singular Name
Last updated
Was this helpful?



