Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

valid exam question?  RSS feed

 
Milan Maric
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What do you think of following question?

Assuming there is entity




and client code that uses this entity




what will happen:

a) deploy exectpion
b) runtime exception
c) customer entity will have its id set
d) behavior is undefined

Is this valid exam question having in mind ejb persistence specification:

2.1.4
The application must not change the value of the primary key [8] . The behavior is undefined if this
occurs. [9]


What would be correct answer?

Milan
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!