From noreply at atlassian.com Thu Sep 14 10:04:25 2006 Content-Type: multipart/mixed; boundary="===============3680314322833559110==" MIME-Version: 1.0 From: Max Rydahl Andersen (JIRA) To: hibernate-issues at lists.jboss.org Subject: [hibernate-issues] [Hibernate-JIRA] Closed: (HBX-578) doesn't take into account the revengfile property for changing properties names on mapping Date: Thu, 14 Sep 2006 09:04:25 -0500 Message-ID: <119889973.1158242665375.JavaMail.j2ee@atlassian01.managed.contegix.com> --===============3680314322833559110== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable [ http://opensource.atlassian.com/projects/hibernate/browse/HBX-578?pa= ge=3Dall ] = Max Rydahl Andersen closed HBX-578: ----------------------------------- Resolution: Incomplete no further info - assuming mysql metadata issue. > doesn't take into account the revengfile property for chang= ing properties names on mapping > -------------------------------------------------------------------------= ------------------------------- > > Key: HBX-578 > URL: http://opensource.atlassian.com/projects/hibernate/browse/H= BX-578 > Project: Hibernate Tools > Type: Bug > Components: reverse-engineer > Versions: 3.1beta4 > Reporter: David Leal > Priority: Critical > Attachments: ant.log > > > When using the property revengfile from in order to c= hange some output on the generated file such changes are not considered on = the generated *.hbml.xml file. > Let's say the following simple ant build file in order to check the fail: > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > ant build.xml file > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > > > > > > > name=3D"hibernatetool" > classname=3D"org.hibernate.tool.ant.HibernateToolTask" > classpathref=3D"lib.classpath" > /> > > > > > > revengfile =3D"hibernate.reveng.xml" > configurationfile =3D"hibernate.cfg.xml" > /> > > > > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > hibernate.reveng.xml file: > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > SYSTEM "http://hibernate.sourceforge.net/hibernate-reverse-engineering-= 3.0.dtd" > > > > match-name=3D"credit_entity" > exclude=3D"false" > /> > > >
>
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > hibernate.cfg.xml file: > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > "-//Hibernate/Hibernate Configuration DTD 3.0//EN" > "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"> > > > org.gjt.mm.m= ysql.Driver > dev00 > jdbc:mysql://localhos= t/lra > dev > org.hibernate.dialect.MySQLD= ialect > > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > database script file: > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > CREATE TABLE credit_entity ( > nif VARCHAR(10) NOT NULL > , name VARCHAR(40) NOT NULL > , PRIMARY KEY (nif) > ); > ALTER TABLE credit_entity COMMENT=3D'Credit entity information'; > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > and the output file is: > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd"> > > > > > > > > > > > > > So, the property associated with column "name" will be mapped with the sa= me name. -- = This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators= .jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --===============3680314322833559110==--