Thread:
 standardGeneratorScheme does not work 
 ipolevoy   06 Jan 2005, 14:47 
 Re: standardGeneratorScheme does not work 
 Geoff Clitheroe   11 Jan 2005, 02:51 
 Re: standardGeneratorScheme does not work 
 stefanm   22 Sep 2005, 08:42 
 Re: standardGeneratorScheme does not work 
 stefanm   22 Sep 2005, 11:32 

Comment
Prev. thread 
 Next thread
 
Prev. posting 
 Next posting
From: stefanm (22 Sep 2005, 11:32) Replies: 0, Views: 32824
Subject: Re: standardGeneratorScheme does not work
POST QUESTIONS ON THE FORUM! COMMENTS HERE SHOULD ADD VALUE TO THE
PAGE!I now found out how you can make Middlegen use any Java class as a
generator. Simply add the class's name to both  of the following attributes:
standardGeneratorScheme
standardGeneratorArg

e.g.:
<hibernate 
  destination="${gensrc.basedir}" 
  package="${gensrc.package}"
  standardGeneratorScheme="at.xxx.TableIdGenerator"
  standardGeneratorArg="at.xxx.TableIdGenerator"
  javaTypeMapper="middlegen.plugins.hibernate.HibernateJavaTypeMapper"
  genXDocletTags="true"/>

Note that as soon as you change any value in middlegen's key generator
drop-down box, it will never again use your owb Java class (unless you
edit the properties file)
Prev. thread 
 Next thread
 
Prev. posting 
 Next posting
© Copyright 2006, Red Hat Middleware, LLC. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc. [Privacy Policy]