Skip to content
Advertisement

How to specify SQL comments through JPA annotations?

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

Advertisement

Answer

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

No. If you want to define tables and columns comments, your best option is to do it after the facts in the generated DDL, before executing it against your database.

Advertisement