Currently ticket has two foreign keys: user_id and trip_id but a trip can belong to another ticket as well and a OneToOne relation is not suitable. Hibernate does a outer left join when querying and throws exception that there are duplicate entities with the same PK.
Currently ticket has two foreign keys: user_id and trip_id but a trip can belong to another ticket as well and a OneToOne relation is not suitable. Hibernate does a outer left join when querying and throws exception that there are duplicate entities with the same PK.