• Post Reply Bookmark Topic Watch Topic
  • New Topic

Map multiple properties as @Id properties Problem

 
S Subbu
Ranch Hand
Posts: 87
jQuery
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi i am using hibernate, I heared that make multiple properties as @Id s and one of them make as autogenerated . Is it possible.

I write a sample code but i got exception field not has default value .

My Code is




When i execute above code i got 'name' field does not have default value.

Please Clarrify Me
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!