posted 15 years ago
all,
I am a hibernate newbie.
I work with an older mysql database. This schema does not have foreign-key constraints between various
tables syntactically. Although, conceptually speaking, there are many foreign-key relationships between these tables.
Eg:- This is a sample table :-
The second table ideally should have been:-
However, I cannot modify schema now.My question is that Can I still use Hibernate annotations here.
Can I still use @OneToMany if there are no foreign key constraints on database tables?