java - Long column size in JPA/Hibernate -


@id @generatedvalue(strategy = generationtype.identity) @basic(optional = false) @column(name = company_id , length = 10) private long id; 

enter image description here

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

Popular posts from this blog

javascript - Confirm a form & display message if form is valid with JQuery -

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

ionic framework - Meteor - Error: Failed to execute 'insertBefore' on 'Node' -