[jbosstools-issues] [JBoss JIRA] (JBIDE-11438) Length import is not correct when using AS71 and HB4 seam generating entity

Dmitry Geraskov (JIRA) jira-events at lists.jboss.org
Wed Apr 11 04:08:48 EDT 2012


    [ https://issues.jboss.org/browse/JBIDE-11438?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12682696#comment-12682696 ] 

Dmitry Geraskov edited comment on JBIDE-11438 at 4/11/12 4:08 AM:
------------------------------------------------------------------

The problem is in seam/seam-gen/GetPropertyAnnotation.ftl which uses hardcoded imports.
                
      was (Author: dgeraskov):
    The problem is in seam/seam-gen/GetPropertyAnnotation.ftl which uses static imports.
                  
> Length import is not correct when using AS71 and HB4 seam generating entity

> -----------------------------------------------------------------------------
>
>                 Key: JBIDE-11438
>                 URL: https://issues.jboss.org/browse/JBIDE-11438
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: hibernate, Seam 2
>    Affects Versions: 3.3.0.Beta2
>         Environment: JBDS 5.0, Beta2, L64,HSQLDB 1.8
>            Reporter: Jiri Peterka
>            Assignee: Dmitry Geraskov
>             Fix For: 3.3.0.Beta3
>
>         Attachments: length-annotation.png
>
>
> While generating entities (HB40,AS71), Length should be imported from:
> import org.hibernate.validator.constraints.Length;
> but it's imported non existing package:
> import org.hibernate.validator.Length;
> 	@Length(max = 200)
> 	public String getSurname() {
> 		return this.surname;
> 	}
> 	public void setSurname(String surname) {
> 		this.surname = surname;
> 	}
> Generated classes should lib according to defined runtime I guess

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jbosstools-issues mailing list