1Z0-898 試験問題を無料オンラインアクセス
試験コード: | 1Z0-898 |
試験名称: | Java EE 6 Java Persistence API Developer Certified Expert Exam |
認定資格: | Oracle |
無料問題数: | 63 |
更新日: | 2025-09-16 |
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)
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?
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)
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?