Skip to content

Commit 60a8e1e

Browse files
authored
Merge pull request #19040 from kriti20041/javadoc-clarity-fix
Add JavaDoc explaining composite key usage in Book entity
2 parents 9f109fe + aa85775 commit 60a8e1e

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

  • persistence-modules/spring-data-jpa-annotations/src/main/java/com/baeldung/composite/entity

persistence-modules/spring-data-jpa-annotations/src/main/java/com/baeldung/composite/entity/Book.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@
22

33
import javax.persistence.EmbeddedId;
44
import javax.persistence.Entity;
5-
5+
/**
6+
* JPA entity representing a Book with a composite primary key.
7+
*
8+
* Uses {@link BookId} as an embedded identifier.
9+
*/
610
@Entity
711
public class Book {
812

0 commit comments

Comments
 (0)