About Question enthuware.oce-jpad.v6.2.559 :

All the posts and topics that contain only an error report will be moved here after the error is corrected. This is to ensure that when users view a question in ETS Viewer, the "Discuss" button will not indicate the presence of a discussion that adds no value to the question.

Moderators: Site Manager, fjwalraven

Post Reply
M_Z

About Question enthuware.oce-jpad.v6.2.559 :

Post by M_Z »

Although option B is fine, the explanation is not accurate:
It depends on whether a field or a property (i.e. a getter method for id) is annotated with @Id.
It also depends on <access> element (see JPA 2.0 specification section 12.2.3.2).
Remember that @Id must be present for every entity class (or its superclass).
ID may be provided in object-relation mapping file instead of @Id annotation, like:

Code: Select all

<attributes>
    <id name="my_id_property" />
</attributes>

admin
Site Admin
Posts: 10061
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: About Question enthuware.oce-jpad.v6.2.559 :

Post by admin »

Explanation has been appropriately modified.

thank you for your feedback!
If you like our products and services, please help us by posting your review here.

Post Reply

Who is online

Users browsing this forum: No registered users and 65 guests