• 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 ..
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!