1.继承WTObject
@GenAsPersistable(
superClass = WTObject.class,
properties = {
@GeneratedProperty(name = "note", type = String.class, constraints = @PropertyConstraints(upperLimit = 500)),
superClass = WTObject.class,
properties = {
@GeneratedProperty(name = "note", type = String.class, constraints = @PropertyConstraints(upperLimit = 500)),
......
@GeneratedProperty(name = "str1", type = String.class)
},
foreignKeys = {
@GeneratedForeignKey(foreignKeyRole = @ForeignKeyRole(name = "itemId", type = WTPartMaster.class, supportedAPI = SupportedAPI.PUBLIC, cascade = false,constraints = @PropertyConstraints(required = true))),
@GeneratedForeignKey(foreignKeyRole = @ForeignKeyRole(name = "pscItemId", type = StandardProduct.class, supportedAPI = SupportedAPI.PUBLIC, cascade = false))
@GeneratedProperty(name = "str1", type = String.class)
},
foreignKeys = {
@GeneratedForeignKey(foreignKeyRole = @ForeignKeyRole(name = "itemId", type = WTPartMaster.class, supportedAPI = SupportedAPI.PUBLIC, cascade = false,constraints = @PropertyConstraints(required = true))),
@GeneratedForeignKey(foreignKeyRole = @ForeignKeyRole(name = "pscItemId", type = StandardProduct.class, supportedAPI = SupportedAPI.PUBLIC, cascade = false))