[jbossseam-issues] [JBoss JIRA] Commented: (JBSEAM-637) seam-gen does not work for MySql tables with enums

Zeljko Trogrlic (JIRA) jira-events at jboss.com
Sun Jan 7 16:50:26 EST 2007


    [ http://jira.jboss.com/jira/browse/JBSEAM-637?page=comments#action_12349689 ] 
            
Zeljko Trogrlic commented on JBSEAM-637:
----------------------------------------

I'll try to do that. I already tried to search for solution in Hibernate forums, but without success. This could be a showstopper if Hibernate shows same behavior with other frameworks, too (Spring etc.).

To summarize, these three problems impacted my out-of-box experience with Seam:
 * tables without primary keys (dummy composite key is generated and generator does not work with these)
 * no support for My SQL enum type
 * while trying to make it work, table drops were not reflected in generated project - several steps needed to remove dropped table

Nevertheless, I will try to find solution.

> seam-gen does not work for MySql tables with enums
> --------------------------------------------------
>
>                 Key: JBSEAM-637
>                 URL: http://jira.jboss.com/jira/browse/JBSEAM-637
>             Project: JBoss Seam
>          Issue Type: Bug
>          Components: Tools
>    Affects Versions: 1.1.0.GA
>         Environment: Windows XP SP2, MySql 5.0.27
>            Reporter: Zeljko Trogrlic
>         Attachments: mysql-enum.log
>
>
> After application is successfully created and deployed, following error occurs during startup:
> javax.persistence.PersistenceException: org.hibernate.HibernateException: Wrong column type: attr_type, expected: varchar(7)
> attr_type is MySql enum column. Same happens with all enums in all tables.

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

        



More information about the seam-issues mailing list