I have a one class diagram with 3 classes, each class is type of “ORM Persistable”. From Eclipse i launch the function Modeling–>ORM–>Generate Code and the tool generates the code for my classes.
Is there the way to delete (or don’t generate) hibernate annotation (@org.hibernate.annotations.GenericGenerator or @org.hibernate.annotations.Proxy(lazy=false))?
After that, i have the code of my classes, if i change the code is possible to synchronize the ORM classes into class diagram? with function “Update UML Model” i can’t do it, is there aother way? With “Update UML Model” i can synchronize only normal class without “ORM Persistable” stereotype.
Thank you for your message. About the code synchronization, we are sorry that currently the code-model synchronization is not cover the ORM Persistable class (they will not involve in code synchronization). And for the annotation issue, do you mean you would like to generate the ORM layer without using annotation (using the XML)?
@Column(name=“ID”, nullable=false) @Id
private Long ID;
…
}
while the same POJO that VP generates is:
/**
ORM-Persistable Class
*/ @Entity @Table(name=“Tecnico”) @org.hibernate.annotations.Proxy(lazy=false)
public class Tecnico implements Serializable {
public Tecnico() {
}