30 A The bean is using bean managed transactions regardless of whether there is

30 a the bean is using bean managed transactions

This preview shows page 3 - 6 out of 7 pages.

30
Image of page 3
A. The bean is using bean-managed transactions regardless of whether there is an active transaction. B. There is no circustance that would cause setRollbackOnly to throw an IllegalStateException. C. The bean is using bean managed transaction demarcation, and uaerTransaccion.begin has been invoked. D. The setRollbackOnly method is invoked within a bean-managed transaction, and userTransaction.commit has NOT been invoked. Answer: C QUESTION: 60 A JavaEE application is packaged as follows. Which of the following is true for a portable JavaEE application? A. This is an invalid application. A JavaEE application cannot have more than one persistent with same name. B. “MyPu” defined under each module is visible to only the defining module. There is no way other modules can access it. C. Code in the ejb1.jar can access “MyPU” defined under war1.war using “war1#myPU” Answer: B QUESTION: 61 The developer has modeled student interests as a set <String>: @Entity public class Student { @Id int student Id; string name; 31
Image of page 4
@ElementaryCollection Set <String> Interests; . . . } The developer wants the values of this set to be stored using a column named student_intersets. Select the item below that accomplishes this task: A. @ElementaryCollection @Column(name = “student_interests”) Set <string> interests; B. @ElementaryCollection (column = “student_intersets”) Set<String> interests; C. @ElementaryCollection @CollectionTable (column = “student_intersets”) Set<String> interests; D. @ElementaryCollection @CollectionTable (column = @column(name = “student_interests”)) Set <String> interests; Answer: D Reference: (see Example of a elementcollection relationship to a basic value annotations) QUESTION:
Image of page 5
Image of page 6

You've reached the end of your free preview.

Want to read all 7 pages?

  • Fall '20
  • developer

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture