[jboss-user] [JBoss Seam] - seam generate-entities

tcavaleiro do-not-reply at jboss.com
Wed May 2 08:14:14 EDT 2007

Hi there,

after running "seam generate-entities" to generate the POJO's that represent the entities I get an error.

I think that is associated with the fact that my MySQL tables are using the "latin-1" charset and because they have names with accents (e.g. acção).

The output that I've is this:

...(regular stuff omitted)...
[hibernate] INFO: cleaning up connection pool: jdbc:mysql://localhost/sicrema
[hibernate] An exception occurred while running exporter #2:hbm2java (Generates a set of .java files)
[hibernate] To get the full stack trace run ant with -verbose
[hibernate] org.hibernate.exception.SQLGrammarException: Error while reading primary key meta data for sicrema.ac?º?úo
[hibernate] com.mysql.jdbc.exceptions.MySQLSyntaxErrorException: Table 'sicrema.ac?ú?º?ú?úo' doesn't exist

C:\Programas\jboss-seam-1.2.1.GA\seam-gen\build.xml:813: org.hibernate.exception
.SQLGrammarException: Error while reading primary key meta data for sicrema.ac?º?úo

Doesn't hbm2java support table names with accents?? 
Anyone that had this problem?

Tiago Cavaleiro

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4042396#4042396

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4042396

More information about the jboss-user mailing list