[
http://opensource.atlassian.com/projects/hibernate/browse/HBX-1004?page=c...
]
Max Rydahl Andersen reopened HBX-1004:
--------------------------------------
could you try with this change:
<#include "Ejb3PropertyGetAnnotation.ftl"/>
<#if !property.optional && !property.equals(pojo.identifierProperty)>
@${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>
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....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira