Card 6 / 18: How to declare JPA Entity class?
A)
Write a private final Entity class named after the mapped table
B)
Annotate the class with @Entity
C)
Annotate the primary key attribute or its getter method with @Id
D)
Define private attributes to map the table columns
E)
Write the finalize method
Answer:
B) Annotate the class with @Entity
C) Annotate the primary key attribute or its getter method with @Id
D) Define private attributes to map the table columns
Previous Card | ← Previous Card Button |
Next Card | → Next Card Button |
Flip Card | Space-Bar |
|