[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-4341) There is no annotation to specify default value for a column

Darren Bell (JIRA) noreply at atlassian.com
Tue Jan 26 12:29:30 EST 2010


    [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-4341?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=35351#action_35351 ] 

Darren Bell commented on HHH-4341:
----------------------------------

If we had a defaultValue property on the @Column annotation, hibernate could use the current dialect to add the default value at the database level.  This would then be database agnostic.

thoughts?

> There is no annotation to specify default value for a column
> ------------------------------------------------------------
>
>                 Key: HHH-4341
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-4341
>             Project: Hibernate Core
>          Issue Type: New Feature
>          Components: annotations
>            Reporter: Nicolae Bucalaete
>            Priority: Minor
>
> In hibernate annotation you can't specify default value for a column.
> If you use xml files for mapping then you have this feature. 
> I consider that this is a major problem with annotation.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list