• Post Reply Bookmark Topic Watch Topic
  • New Topic

Primary keys  RSS feed

 
Johan Everman
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can I have an 'int' as a primary key or do I need to use Integer?
/BR Johan
 
Weerawit Maneepongsawat
Ranch Hand
Posts: 203
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The primary key alway be Object and serializable.

 
Mikalai Zaikin
Ranch Hand
Posts: 3403
16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Johan !
You can simply use Integer wrapper class.
Cheers !
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!