Show TOC Start of Content Area

Procedure documentation Modifying Persistence Properties  Locate the document in its SAP Library structure

Use

You use this procedure to set additional options on the persistent state of an entity. You can set specific attributes on entities and/or their fields.

Prerequisites

You have opened the Java Persistence perspective.

More information: Java Persistence Perspective

Procedure

...

       1.      To modify an entity field, open the entity and select the entity field in the Persistence Outline.

       2.      Choose the General tab of the Persistence Properties.

If you want to

Then

Specify if the field is used in all SQL INSERT statements.

...

Choose True from the Insertable dropdown list.

Specify if the field is used in all SQL UPDATE statements.

...

Choose True from the Updatable dropdown list.

Specify if the value of the field is loaded lazily or fetched eagerly.

...

...

Choose Eager or Lazy from the Fetch Type dropdown list.

Specify if the field can be null

...

Choose True from the Optional dropdown list.

Specify the field to be one of the following data types: java.util.Date, java.util.Time, or java.util.Timestamp.

Choose Date, Time, or Timestamp from the Temporal dropdown list.

Specify if operations on the field are cascaded to associated(related) fields.

...

Choose the appropriate option from the Cascade Type dropdown list. The cascade types have the following semantics:

      Default – no operations are cascaded.

      All – all merge, persist, and remove operations on the field are cascaded on related fields.

      Merge – All merge operations on the field are cascaded on related fields.

      Persist – All persist operations on the field are cascaded on related fields.

      Remove – All remove operations on the field are cascaded on related fields.

 

End of Content Area