Problem generating entity with links using Dsl model in Telosys
claudiadm
Mon, 28 Dec 2020 14:35:07 GMT
When I use $jpa.linkAnnotations to generate entities with relationships using DSL model, I always get the mappedBy=null, how can I fix this?
Here is my DSL model example:
Car {
id : int { @Id, @AutoIncremented };
user : Employee;
}
Employee {
id : long { @Id } ;
name : string ;
cars : Car[] ;
}
That is what I get:
@OneToMany(mappedBy="null", targetEntity=Car.class)
private List<Car> cars ;
@ManyToOne
private Employee user ;
stackoverflow link: https://stackoverflow.com/questions/65417266/problem-generating-entity-with-links-using-dsl-model-in-telosys
Telosys Team
Mon, 04 Jan 2021 21:40:09 GMT
See response in StackOverflow :
https://stackoverflow.com/questions/65417266/problem-generating-entity-with-links-using-dsl-model-in-telosys