Wednesday, January 15, 2014

Setting Entity Object's attribute properties

Database and Java datatypes for an entity object attribute is as below


- Options for Persistence either in Database or Transient attributes
- Options to set Column type and Java Type
- Java Object type should be serializable
-  Options to set Data types Length type and precision
- Updatability options for an attribute
  •   Always
  • Never 
  • While New - Creates the entity row for the first time after successfully committed to db attribute 
- Options to set attributes mandatory and primary key
- Options to set single and multi attribute key
getkey() - Key object contain the value of primary key
Multiple Key - key objects contain value of all keys in order

- Options to define static and default values . Default value can set by literals or using groovy expressions






No comments:

Post a Comment