Im trying to generate classes using my own springboot template and Dsl models. In my ".entity" files I have:
Car {
id : int { @Id, @AutoIncremented };
users : Employee [];
}
Employee {
id : long { @Id } ;
name : string ;
cars : Car[] ;
}
I was expecting a @ManyToMany relation in JPA but I didn't. The same thing with this:
Car {
id : int { @Id, @AutoIncremented };
user : Employee;
}
Employee {
id : long { @Id } ;
name : string ;
car : Car;
}
I expect a @OneToOne relation but I don't get it. It seems I can only get @ManyToOne and @OneToMany. How can I get @ManyToMany and @OneToOne relations using DSL models?