I would like Hibernate to include comments from my java source when creating DDL. I would be happy to do this as an annotation or as a javadoc tag.
IOW: I would like to be able to go
@Entity @DDLComment "This entity is cool" class Foo { @DDLComment "But this field is kinda lame" int lame_o_rama;
And (in oracle), hibernate should generate
CREATE TABLE FOO ( LAME_O_RAMA number }; COMMENT ON FOO IS 'This entity is cool'; COMMENT ON FOO.LAME_O_RAMA 'But this field is kinda lame';
Is there an annotation, doc tag, configuration parameter, etc. etc. to do this?
annotations hibernate documentation ddl
PaulMurrayCbr
source share