How to specify SQL comments through JPA annotations?

前端 未结 3 1663
终归单人心
终归单人心 2020-12-20 15:24

Is there any way to specify SQL comments through JPA annotations? Comments for tables and columns.

3条回答
  •  醉酒成梦
    2020-12-20 16:06

    The standards(http://savage.net.au/SQL/) do not seem to define any way to define table or column comments (looks like they don't even mention them). So, the syntax for comments on tables/columns can vary from one DBMS to another. I think thats why JPA offers no generic way to do that

提交回复
热议问题