This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

where and when is the primary key set  RSS feed

krishna prasad gunasekaran
Ranch Hand
Posts: 158
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
good day,

1. when and where is the primary key we get from getPrimaryKey() set?
2. class cast exception thrown in ejbLoad(), when i used my primary key class
instead of Integer. (Clause clause = (Clause) context.getPrimaryKey(),where
Clause is my Primary Key class.)

Note: I have never use my ejbCreate(), because i use existing records in db.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!