Chapter 9 Generating Persistent Objects for Java and JSF Pages
Attributes can be migrated attributes or ordinary attributes. Ordinary attributes can be mapped to columns or formulas. Migrated attributes do not require attribute mapping.
The following types of mapping are possible:
Hibernate-specific attribute mapping options are defined in the Hibernate tab of the Attribute property sheet.
Option | Description |
---|---|
Generate finder function | Generates a finder function for the attribute. |
Hibernate type | Specifies a name that indicates the Hibernate type. |
Property access | Specifies the strategy that Hibernate should use for accessing the property value. |
Id unsaved value | Specifies the value of an unsaved id. |
Insert | Specifies that the mapped columns should be included in any SQL INSERT statements. |
Update | Specifies that the mapped columns should be included in any SQL UPDATE statements. |
Optimistic lock | Specifies that updates to this property require acquisition of the optimistic lock. |
Lazy | Specifies that this property should be fetched lazily when the instance variable is first accessed (requires build-time byte code instrumentation). |
Copyright (C) 2007. Sybase Inc. All rights reserved. |
![]() |