• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Two classes in a single HBM file

 
karimkhan pathan
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Can We write two classes or say two tables mapping into a single .hbm file .

If yes what happens if the two classes are in different packages
 
Patricia Samuel
Ranch Hand
Posts: 300
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, We can write.....

You can use fully qualified name for the class instead of giving it at hibernate-mapping .

But i am not sure what will be the file name in that case. Anybody please help.

Regards
Patricia
 
karimkhan pathan
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot ..
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic