How do you add comments when JPA creates a table in an postgresql database?

mysql is @ Column (name = "name", columnDefinition = "varchar (100) comment "comment")
what does postgresql do?


you can annotate the table in the following way


import javax.persistence.Column;
import javax.persistence.Table;

@Table
@org.hibernate.annotations.Table(appliesTo = "t_source", comment = "")
public class Source {
...
}

annotate the Column of postgresql. I suggest you give up this idea.

the suggestion put forward by someone in 2012 has not been solved today. If you like, you can develop a patch

.
Menu