Setting column length of a Long value with JPA annotations
- by Gearóid
Hi,
I'm performing a little database optimisation at the moment and would like to set the column lengths in my table through JPA. So far I have no problem setting the String (varchar) lengths using JPA as follows:
@Column(unique=true, nullable=false, length=99)
public String getEmail() {
return email;
}
However, when I want to do the same…