1.3.9
- add CosIdAnnotationSupport
public class Entity {
@CosId
private long id;
@CosId
private String stringId;
public long getId() {
return id;
}
public void setId(long id) {
this.id = id;
}
public String getStringId() {
return stringId;
}
public void setStringId(String stringId) {
this.stringId = stringId;
}
}
Entity entity=new Entity();
cosIdAnnotationSupport.ensureId(entity);
Assertions.assertEquals(1,entity.getId());
Assertions.assertEquals("2",entity.getStringId());