1Z0-898 試験問題を無料オンラインアクセス

試験コード:1Z0-898
試験名称:Java EE 6 Java Persistence API Developer Certified Expert Exam
認定資格:Oracle
無料問題数:63
更新日:2025-09-16
評価
100%

問題 1

A developer who is designing entity classes to map a legacy database encounters a table called STUDENT_RECORD.
This table has two columns, STUDENT_ID and STUDENT_INFO_ID. The primary key of this table consists of both columns, and there is a unique constraint on each info column.
The STUDENT_ID column is foreign key to the STUDENT table and STUDENT_INFO_ID column is a foreign key to the STUDENT_DAT table.
What entity classes and relationships can the developer use to model these tables and relationship?(Choose two)

問題 2

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?

問題 3

Given the following code:
Public void create () {
try {
doA () {
} catch (PersistenceException e) {} try (doB) ();
} catch (PersistenceException e) {}
}
Calling method doA will cause an NonUniqueResultException to be thrown. Calling method doB will cause an EntityExistsException to be thrown.
What two options describe what will happen when the create method is called within an application ' uses container managed transactions? (Choose two)

問題 4

Given the following entity classes:
@Entity
@cacheable (true)
Public class A { . . . } @Entity
@cacheable (false)
Public class B { . . .}
@Entity
Public class C { . . . }
If the shared-cache-mode element of persistence.xml is set to ENABLE _SERVICE, which entities are cached when using a persistence provider that supports caching?

問題 5

Consider a persistence application with following entity:
@Entity
Public class MyEntity {
@Column (name = "FIELDA_COLUMN")
int fieldA;
int fieldB;
int fieldC;
int fieldD;
An orm.xml is packaged in the application with the following contents:

Which two of following statement are true. (Choose two)

コメントを追加

あなたのメールアドレスが公開されることはありません。個人情報に関する内容は隠されます *

insert code
画面にある文字を入力してください。