Hi,
the error I'm getting is sure more related to JBoss Seam, but after viewing the code I saw that it depends on hbm2java.
I'm talking about seam-gen, more concisely about the "seam generate-entities" command so I can generate the POJO's that represent the entities.
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). I think that's the cause, because using tables with ansi names works fine.
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
BUILD FAILED
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 had this problem?
Thanks,
Tiago Cavaleiro
|