Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

@embeddedid

@Entity
public class Book {

    @EmbeddedId
    private BookId id;
    private String genre;
    private Integer price;

    //standard getters and setters
}
Source by www.baeldung.com #
 
PREVIOUS NEXT
Tagged:
ADD COMMENT
Topic
Name
2+3 =