Home Alter table from jpa annotations in Java
Reply: 0

Alter table from jpa annotations in Java

user571 Published in August 14, 2018, 8:27 am

I have a definition for a column like that:

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:

private String my_column;


@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.317737 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO