<< Prev Question Next Question >>

Question 28/63

A developer is creating an entity which is mapped to a table that has a primary key constraint defined on two character columns and would like to use mapping defaults as much as possible to simplify the code.
Which two mapping options can be chosen? (Choose two.)

LEAVE A REPLY

Your email address will not be published. Required fields are marked *

Question List (63q)
Question 1: Which cascade option can be specified in a mapping descripto...
1 commentQuestion 2: Consider the following web application: (Exhibit) Here MyEnt...
Question 3: Which of the following Criteria query snippets demonstrates ...
Question 4: A developer needs to include a set of managed classes in a p...
Question 5: The developer wants to override the default mappings for an ...
Question 6: The Contact Information embeddable class contains address in...
Question 7: Given the following code: Public void create () { try { doA ...
Question 8: An application that uses pessimistic locking calls an update...
Question 9: Consider a persistence application with following entity: @E...
Question 10: An entity person is mapped to a table PERSON and has a colle...
Question 11: A session bean business method invokes UserTransaction.setRo...
Question 12: If a Persistence application locks entity x with a LockModeT...
Question 13: A session bean business method throws an exception during ex...
Question 14: A developer wants to ensure that an entity's data is up-to-d...
Question 15: An application has two entities, Department and Employee, an...
Question 16: A developer who is designing entity classes to map a legacy ...
Question 17: An application uses an application-managed entity manager. W...
Question 18: The developer wants to write a criteria query that will retu...
Question 19: A stateless session bean's business method invokes EJBContex...
Question 20: A user entity is retrieved in a query and stored in an insta...
Question 21: Persistence application locks entity x with a LockModeType. ...
Question 22: Given two entities with one to-one association: @ Entity pub...
Question 23: Consider a persistence application with the following orm.xm...
Question 24: FooBean and BarBean are both EJB 3.0 stateless beans with co...
Question 25: Which two of the following statements are true of embeddable...
Question 26: An application wants to utilize side effects of cascading en...
Question 27: A user entity is in a one-to-many relationship with a Book e...
Question 28: A developer is creating an entity which is mapped to a table...
Question 29: An application creates a TypedQuery object to perform a quer...
Question 30: A developer is writing an application with three java Persis...
Question 31: The department entity has a unidirectional OneToMany relatio...
Question 32: A JavaEE application is packaged as follows. (Exhibit) Which...
Question 33: If an application uses an extended persistence context, whic...
1 commentQuestion 34: Which statement is correct about the Java Persistence API su...
Question 35: The developer has modeled student interests as a set &lt;Str...
Question 36: An application has two entities, parson and Address. (Exhibi...
Question 37: WhichEntityManager API will lock entity with a pessimistic l...
Question 38: A developer wants to create a Java Persistence query that wi...
Question 39: The developer wants to define a unidirectional relationship ...
Question 40: An application uses optimistic locking by defining version a...
Question 41: Entity lifecycle callback methods may be defined in which th...
Question 42: An application has three entities: the mapped superclass per...
Question 43: Which one of the following queries selects the customer whos...
Question 44: It a Persistence application locks entity x with a pessimist...
Question 45: Given: @PersistenceContext EntityManager em; public boolean ...
Question 46: A developer wants to model the grades for a student as a Map...
Question 47: A developer has created an application managed entity manage...
Question 48: If a Persistence application locks entity x with a pessimist...
Question 49: Given the following entity classes: @Entity @cacheable (true...
Question 50: The developer is creating a Java Persistence model for a leg...
Question 51: Given the following stateless session bean implementation cl...
Question 52: A developer wrote an entity class with the following method:...
Question 53: The developer wants to write a portable criteria query that ...
Question 54: An application that uses container-managed transaction demar...
Question 55: A named query that sets an exclusive pessimistic on the enti...
Question 56: Refer to the Exhibit. (Exhibit) A developer wants to have bo...
Question 57: The developer has defined the following entity class office:...
Question 58: Given a set of CMT bean methods with the following transacti...
Question 59: The embeddable class ContractInformation is used in an eleme...
Question 60: A developer has created a deep entity class hierarchy with m...
Question 61: Which statement is true about the @OrderColumn annotation?...
Question 62: A developer wants to write a type-safe Criteria API query. W...
Question 63: Given two entities with many-to-many bidirectional associati...