Which f the following JPA-related statements is false?

a. You can use EntityManager method getTransaction to get the EntityTransaction that manages the transaction.
b. You can use EntityTransaction method begin to start the transaction.
c. You can use EntityManager method apply to insert a new entity into the database.
d. You call EntityTransaction method commit to commit the changes to the database.


c. You can use EntityManager method apply to insert a new entity into the database. Actually, you can use EntityManager method persist to insert a new entity into the database.

Computer Science & Information Technology

You might also like to view...

Applets are important because the can be used to:

A) extend the capabilities of a web page B) process large data files C) run other programs on the user's system D) convert machine language into HTML

Computer Science & Information Technology

The StringBuilder methods _____________ not only change the contents of a string buffer, but also returns a reference to the string buffer.

a. delete b. append c. insert d. reverse e. replace

Computer Science & Information Technology

One purpose of a one-to-many relationship is to:

A) allow a user to enter any kind of data. B) restrict a user from entering bad data. C) define the attributes of the table. D) define the criteria of a related table.

Computer Science & Information Technology

You can change the height or width of an object and have the other dimension automatically adjust to maintain the proportion with the _________ option

Fill in the blank(s) with correct word

Computer Science & Information Technology