Public Methods
These methods are exposed via the generated business interface of the entity.
registerChange(Change)
- Allows for an entity to register the fact that a different entity has changed, in order to fire any dependent change handler logic in this entity. This is most useful in situations where the changed object and the dependent object (the one needing to know about the change) are not directly related by parent-child relationships.getDTO()
- Get aDataTransferObject
representing the current state of the entity.setDTO(DataTransferObject)
- Update the state of the entity based on the passed values in the DTO.getId()
- Each entity has a method by this name, which retrieves and Id instance of the appropriate class for the entity.getFoo()
- Get the value of the persistent propertyfoo
.fetchBar()
- Convenience method that will fetch the value ofbar
, wherebar
is a parent entity referenced by an optional foreign key reference. The wordfetch
is used to denote that navigation to that entity is not provided from within HQL.getBazzes()
- Get theEntityList
containing members of the entitybaz
. For example, agetPersonNames()
method on theperson
entity might return an instance of anEntityList
containingPersonName
instances.