-
Bug
-
Resolution: Done
-
Major
-
1.1.2.Final
-
None
To create a self-referenced entity below,
[myprj] myprj $ entity --named Employee [myprj] Employee.java $ field manyToOne --named boss --fieldType com.me.model.Employee.java --inverseFieldName bees [myprj] Employee.java $ cat ../Employee.java ..... @Entity public class Employee implements Serializable { @Id private @GeneratedValue(strategy = GenerationType.AUTO) @Column(name = "id", updatable = false, nullable = false) Long id = null; @Version private @Column(name = "version") int version = 0; @ManyToOne private Employee boss; ...... }
The reverse side "bees" hasn't be generated at all.