Home Alter table from jpa annotations in Java
Reply: 0

Alter table from jpa annotations in Java

user571
1#
user571 Published in April 26, 2018, 7:54 am

I have a definition for a column like that:

@Column
private String my_column;

And by default in Postgres database type for this field is character varying(255).

Now, I want to change the data type for this column.

How I can do this without entry in database and alter table?

I tried this:

@Lob
@Column
private String my_column;

And

@Column(columnDefinition = "TEXT")
private String my_column;

But, without results.

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.305162 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO