-->
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.  [ 2 posts ] 
Author Message
 Post subject: Can I specialize charset when generate pojo files from hbm?
PostPosted: Mon Jan 14, 2008 3:52 am 
Newbie

Joined: Mon Apr 11, 2005 4:53 am
Posts: 3
When generate pojo files by hbm2java, I don't know how can I specialize a charset name in build.xml. In my case, hbm2java generates files in system encoding by default.

In org.hibernate.tool.hbm2x.TemplateProducer source, I found:

void produce(Map additionalContext, String templateName, File destination, String identifier, String fileType){
...
fileWriter = new FileWriter(destination);
fileWriter.write(tempResult);
..

I thought here may use OutputStreamWriter to generate a special encoding file instead.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 14, 2008 1:40 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
i guess not...except setting the default output to what you want.

_________________
Max
Don't forget to rate


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

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.