This week's book giveaway is in the Java 9 forum.
We're giving away four copies of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications and have Sander Mak & Paul Bakker on-line!
See this thread for details.
Win a copy of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications this week in the 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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!