JPA Composit PKs

There are three ways to create composit PK, see section 2.2.6

@Id and @Embeddable
or
@EmbeddedId
or
@IdClass

Comments

Popular posts from this blog

Locks held on Oracle for hours after sessions abnormally terminated by node failure

Java InetAddress isReachable ICMP (Ping)

Oracle JDBC ReadTimeout QueryTimeout