Reputation: 43
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Basic(optional = false)
@Column(name = COMPANY_ID , length = 10)
private Long id;
in my sql it gets converted to BIGINT(20),what if i want it to be int(11) or how to give specific size to Long field??
Upvotes: 0
Views: 2463
Reputation: 6574
you can use columnDefinition inside @Column()
@Column(columnDefinition="BIGINT(20)")
Upvotes: 1