7. Infrastructure Development Bottleneck Application Development Infrastructure Development 20% 80% Work Harder Work Smarter Application Development Infrastructure Development 80% 20%
28. <class> Element Most Common Attributes No Custom persister class name persister No Flag, when “true“ only changed properties updated, and not the whole class dynamic-update No Flag, when “true“ only new properties inserted, and not the whole class dynamic-insert No Database schema to use Default – none schema No Table name to store the state in Default – same as class name table No Exact type of object in inheritance mapping (rarely used) discriminator-value No Custom proxy class name (rarely used for lazy fetching) proxy Yes Fully qualified name of the class to persist May be an interface name Req Description Attribute
29.
30. PK Generator Options This generator uses a 128-bit UUID. Generates String unique within network (IP and timestamp combination) uuid.hex DB sequence in DB2, PostgreSQL, Oracle, SAP DB, McKoi, Firebird, and InterBase sequence DB identity columns in DB2, MySQL, MS SQL Server, Sybase, HSQLDB, Informix, and HypersonicSQL identity Reads the maximum primary key column value of the table on startup and increments the value by one each time a new row is inserted. Only for exclusive access to the DB increment High/low algorithm. Identifiers are unique only for a particular database. hilo Picks other identity generators depending on the db capabilities native Description Class
31. <property> Element Most Common Attributes No Flag, when “false“ only existent properties updated, exception otherwise insert No Allow/disallow same values Default – false unique No Flag, when “false“ only new properties inserted, exception otherwise update No Hibernate type Default – determined by reflection type No Column name to store the property in Default – same as property name column No Allow/disallow null values Default – false not-null No The maximum length of the value length Yes The Java property name (private field, or accessor/mutator pair) name Req Description Attribute