Links

Model

New annotations

  • @JoinEntity (for entity) : to explicitly define a 'join entity' (for ORM)
  • @Cascade (for link) : for ORM cascade management (MERGE, REMOVE, etc)
  • @OrphanRemoval (for link) : for ORM like JPA, Doctrine, etc

Modified annotations

  • @AutoIncremented : this annotation is now just a shortcut for 'GeneratedValue(IDENTITY)'
  • @GeneratedValue : the parameters are different and simpler

Model objects in template context

  • $entity.hasGeneratedKey() : new
  • $entity.isJoinEntity() : now based on annotation @JoinEntity
  • $attribute.fkPartsCount : new
  • $attribute.ini : new
  • $attribute.hasGeneratedValueStrategy(...) : new
  • $attribute.hasGeneratedValueAllocationSize() : new $attribute.generatedValueAllocationSize : new
  • $attribute.hasGeneratedValueInitialValue() : new $attribute.generatedValueInitialValue : new
  • $attribute.hasGeneratedValueSequenceName() : new $attribute.generatedValueSequenceName : new
  • $attribute.hasGeneratedValueTablePkValue() : new $attribute.generatedValueTablePkValue: new
  • $attribute.generatedValueGenerator : removed
  • $attribute.isSelected() : removed
  • $attribute.jdbcRecommendedJavaType : removed
  • $attribute.jdbcTypeCode : removed
  • $attribute.jdbcTypeName : removed
  • $link.isOrphanRemoval() : new
  • $link.joinEntity : new
  • $fk.isExplicit() : new, true if 'real FK' ( with a name )
  • $fk.isComposite() : new, true if more than 1 attribute
  • $fkPart.referencedAttribute : new
  • $fkPart.referencedEntity : new