|Missing join table in database using JPA Tools -> Generate Tables from Entities [message #1017159]
||Sun, 10 March 2013 05:47
| G M
Registered: March 2013
I'm learning (Eclipse + WTP/Dali + JPA Diagram Editor) and defined a 1:n relationship in the DiagramEditor between Department and Person entity.|
The resulting code for "Department" entity is:
@OneToMany(mappedBy = "department", cascade = ALL)
private Set<Person> person;
JPA Details view shows: Joining strategy = "Join table" >> Name = "Default (t_department_t_person)" and the Join & Inverse columns are properly identified.
When I run "JPA Tools" >> "Generate Tables from Entities..." (MySQL db), the join table is not created (all other tables are fine) and the Validation in Eclipse is identifying the error "Join table 't_department_t_person' cannot be resolved" since it is not in the db.
I'm using: Juno with latest version of WTP (installed today), mysql-connector 5.1.23
If anyone could kindly point out what I'm missing?
Powered by FUDForum
. Page generated in 0.01685 seconds