[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
| 
Re: [eclipselink-users] DDL for column comment
 | 
Hi Tom, 
thank you for your answer. 
Would it make sense to extend the @Column annotation with attribute name
comment? I didn't read the JSR so far, but maybe this is a sensible
approach.
Though it is only a documentation feature, I guess it isn't worth the effort
for the mainstream.
tware wrote:
> 
> There is not currently a feature like that.  Your best option is to
> generate the 
> DDL to a SQL script with our sql-script DDL generation and then add the
> comments 
> manually to the script.
> 
> -Tom
> 
> cinhtau wrote:
>> Dear EclipseLink users,
>> 
>> does EclipseLink or JPA 2.0 in general supports a way to fill or alter
>> comments of created data definitions?
>> DDL - creation works like a charm and it is highly flexible. 
>> 
>> @Id
>> private int id;
>> /**
>>  * zipcode of location
>>  */
>> private String plz;
>> 
>> Is there an annotation, that I can use to setup corresponding comments of
>> fields like my Java Doc above the java field to create a DDL-statement
>> like
>> that COMMENT ON COLUMN fi_banken.plz IS 'zipcode of location';?
>> 
>> It's not an important feature, just want to know if EclipseLink/JPA
>> supports
>> it.
>> 
>> Thanks in advance
>> cinhtau
> _______________________________________________
> eclipselink-users mailing list
> eclipselink-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/eclipselink-users
> 
> 
-- 
View this message in context: http://old.nabble.com/DDL-for-column-comment-tp30273900p30283779.html
Sent from the EclipseLink - Users mailing list archive at Nabble.com.