posted 13 years ago
Hello,
I'm using JPA with Hibernate 3.5.6 as the persistence provider. I've mapped some entities using JPA annotations and I'm using database schema generated by Hibernate, but I'm encountering incorrect SQL insert statements in runtime when trying to persist on of the entities.
Here are the entitites:
The Player entity looks like this:
The schema generated by Hibernate looks like this:
When I try to persist the MatchEntity, one of the generated insert statements is incorrect. Table Game_Player has three columns, not two.
Does anyone have an idea what could be wrong? I don't think that the interface types are causing the problems, I have the target entities specified and I tried to get rid of the interface types and the problem didn't go away.
I'll be grateful for any tips.
Vladimir