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

.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b38493-2c11a.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b38493-2c11a.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?