-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Encoding of hbm2ddl file
PostPosted: Mon Feb 21, 2011 1:56 pm 
Newbie

Joined: Fri Feb 24, 2006 9:15 am
Posts: 17
Hi there,

I have a hibernate annotated project, managed by maven 2. The client has a database table with a column called "contraseña" (the ñ is a non-ascii character).

When I generate the schema with the hibernate2.maven-plugin (which uses hbm2ddl I presume), the resulting file has the ñ wrongly encoded when read as UTF8
I've tried the following:
[list=][*]Source code files in UTF8
[*]encoding property for maven:<project.build.sourceEncoding>UTF8</project.build.sourceEncoding>
[*]<encoding>UTF-8</encoding> in the maven-resources-plugin
[/list]
I know this could have to do with the maven plugin, but as it has hbm2ddl under the hood it seems more logical to search over here.

Has anybody seen this, and found a solution?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.