Am i right that @Id annotation add two constraints in database:
- nullable=false
- unique=true
? I saw a lot of examples in the Internet with syntax like
@Id
@Column(name="xxx",nullable=false)
BigInteger id
It is correct? Do i really need this nullable=false?