[hibernate-issues] [Hibernate-JIRA] Commented: (HBX-1004) Bugs affecting seam-gen and JBoss Tools

Max Rydahl Andersen (JIRA) noreply at atlassian.com
Wed Oct 24 14:27:38 EDT 2007


    [ http://opensource.atlassian.com/projects/hibernate/browse/HBX-1004?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_28544 ] 

Max Rydahl Andersen commented on HBX-1004:
------------------------------------------

here is quick fix (out of memory) could you try and replace  seam-gen/pojo/GetPropertyAnnotation.ftl with this one:

<#include "Ejb3PropertyGetAnnotation.ftl"/>
<#if !property.optional && !pojo.identifierProperty.equals(property)>
    @${pojo.importType("org.hibernate.validator.NotNull")}
</#if>
<#if property.columnSpan==1>
<#assign column = property.getColumnIterator().next()/>
<#if !c2h.isManyToOne(property) && !c2h.isTemporalValue(property) && column.length!=255>
    @${pojo.importType("org.hibernate.validator.Length")}(max=${column.length?c})
</#if>
</#if>

Let me know how that works out.

> Bugs affecting seam-gen and JBoss Tools
> ---------------------------------------
>
>                 Key: HBX-1004
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HBX-1004
>             Project: Hibernate Tools
>          Issue Type: Bug
>          Components: hbm2java
>            Reporter: Gavin King
>            Assignee: Max Rydahl Andersen
>            Priority: Critical
>
> The following problems need to be solved for JBoss tools:
> * @Id @GeneratedValue attributes should NEVER have @NotNull generated!
> * MySQL internally stores columns of type NUMERIC as DECIMAL - we should change MySQLDialect to generate DECIMAL in the DDL, or we should hack SchemaExport to consider NUMERIC and DECIMAL is "equal" for the purposes of validation

-- 
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