java - Long column size in JPA/Hibernate -
@id @generatedvalue(strategy = generationtype.identity) @basic(optional = false) @column(name = company_id , length = 10) private long id;
in sql gets converted bigint(20),what if want int(11) or how give specific size long field??
you can use columndefinition inside @column()
@column(columndefinition="bigint(20)")
Comments
Post a Comment