I created a @OneToMany relationship with Entities.
For instance, Member
and Address
. These two are joined by Mem_Addr
table.
When I deploy the application, the log shows:
EntityBinder I org.hibernate.cfg.annotations.EntityBinder bindTable Bind entity Address on table ADDRESS
But the table doesn't exist the in the database.. Not sure how this happens?!?!
Secondly, the Hibernate query (from the Log) to pull members, which is expected to show Address Query as well. But the query does not have Address / Mem_addr tables included. Its just pulling Members alone, ignoring address, despite @OneToMany annotation.
Any ideas? Does Hibernate intelligently recognizes non-existance of table and does not include that table in the query?
Edit Updated for clarity.