最新的Oracle Java EE 6 Java Persistence API Developer Certified Expert - 1Z0-898免費考試真題

The developer is creating a Java Persistence model for a legacy database. The database contains customer and subscriptions.
The subscriptions table has a foreign key to the Customer table, a foreign key to the magazines table, and a column that stores a java.util.Date (the subscription expiration date).
The developer wants to create entities Customer and subscription to model these tables and to represent the relationship between customer and subscription as a java.util.Map.
Which one of the following fields of the Customer entity accomplishes this task?

正確答案: C
It a Persistence application locks entity x with a pessimistic lock, which statement is true?

正確答案: A
說明:(僅 Fast2test 成員可見)
A stateless session bean's business method invokes EJBContext.setRollBackOnly and receives an IllegalStateException.
Under which of these conditions could this be possible?

正確答案: D
A developer wrote an entity class with the following method:
Private static Logger logger = Logger.getLogger ("myLogger");
@PrePersist @PreUpdate Public void doA () { Logger.info ("A"); } @PostPersist @PostUpdate Public void doB () { logger.info ("B"); }
What will the log message contain when an application does the following?
1.Begins a transaction
2.Creates the entity
3.Persists the entity
4.Commits the transaction
5.Begins the entity data
6.Modifies the entity data
7.Merges the entity
8.Commits the second transaction

正確答案: D
If a Persistence application locks entity x with a LockModeType.OPTIMISTIC_FORCE INCREMENT lock type, which statement is true?

正確答案: C
說明:(僅 Fast2test 成員可見)
FooBean and BarBean are both EJB 3.0 stateless beans with container-managed transaction demarcation. All business methods in FooBean have transaction attribute REQUIRED, and all business methods in BarBean have transaction attribute REQUIRED_NEW. The business method foo in FooBean invokes the Business method bar in BarBean.
Given:
10.
Public class BarBean {
11.
public void bar () {
12.
throw new RuntimeException ("unexpected error . . . ");
13.
}}
Which is true about the method of invocation assuming execution reaches line 12?

正確答案: B
Given two entities with many-to-many bidirectional association between them: What set of annotations correctly defines the association?

正確答案: A

聯系我們

如果您有任何問題,請留下您的電子郵件地址,我們將在12小時內回复電子郵件給您。

我們的工作時間:( GMT 0:00-15:00 )
週一至週六

技術支持: 立即聯繫 

English 日本語 Deutsch 한국어