From jira-events at lists.jboss.org Fri Feb 17 16:12:37 2012 Content-Type: multipart/mixed; boundary="===============3856134983504899799==" MIME-Version: 1.0 From: Gonzalo Aguilar (JIRA) To: jboss-jira at lists.jboss.org Subject: [jboss-jira] [JBoss JIRA] (HIBERNATE-128) Hibernate tools generate wrong sequence when using multiple table-filters Date: Fri, 17 Feb 2012 16:12:36 -0500 Message-ID: <738675308.25917.1329513156152.JavaMail.tomcat@jira02.app.mwc.hst.phx2.redhat.com> --===============3856134983504899799== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Gonzalo Aguilar created HIBERNATE-128: ----------------------------------------- Summary: Hibernate tools generate wrong sequence when using mu= ltiple table-filters Key: HIBERNATE-128 URL: https://issues.jboss.org/browse/HIBERNATE-128 Project: Hibernate Integration Issue Type: Bug Environment: Linux red1 3.0.0-16-generic #28-Ubuntu SMP Fri Jan 27= 17:44:39 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux /usr/lib/jvm/java-6-openjdk/jre/bin/java Hibernate Tools 3.4.0.CR1 Eclipse Indigo Reporter: Gonzalo Aguilar Assignee: Steve Ebersole Hibernate tools (reverse engineering) is creating wrong sequence number whe= n using different table-filters. I also think that some interface with eclipse is doing bad things to file c= ache. First: Sequence generation is not generated correctly when using schema tag on tab= le with some table-filters. Example ... ... contact_record_id_contact_record_seq
---> RESULT WRONG!!!! it performs a generator=3D"assigned" ... ... contact_record_id_contact_record_seq
---> RIGHT!! BUT YOU HAVE TO SEE THE SCREENSHOT... IT DOES NOT GET UPDATED= IN ECLIPSE This creates something like in eclipse. No matter what you do (refresh, clo= se and open again, etc): ---- But in the file if you see with a less command you get: = contact_record_id_contact_record_seq<= /param> ------ That is right. Second: I also got a GUI problem when reversing this: contact_record_id_contact_record_seq
if the commented section is enabled (uncommented). That is wrong because ty= pes does not match but it should do something and tell you that's wrong. In= stead it just crashes. The only way to make it work was adding schema to ta= ble: contact_record_id_contact_record_seq
But it got the sequence wrong again. = That was really weird... Hope it helps -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrato= rs: https://issues.jboss.org/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira =20 --===============3856134983504899799==-- From jira-events at lists.jboss.org Fri Feb 17 16:17:37 2012 Content-Type: multipart/mixed; boundary="===============6149852159930488172==" MIME-Version: 1.0 From: Gonzalo Aguilar (JIRA) To: jboss-jira at lists.jboss.org Subject: [jboss-jira] [JBoss JIRA] (HIBERNATE-128) Hibernate tools generate wrong sequence when using multiple table-filters Date: Fri, 17 Feb 2012 16:17:36 -0500 Message-ID: <1765990075.25922.1329513456175.JavaMail.tomcat@jira02.app.mwc.hst.phx2.redhat.com> In-Reply-To: 738675308.25917.1329513156152.JavaMail.tomcat@jira02.app.mwc.hst.phx2.redhat.com --===============6149852159930488172== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable [ https://issues.jboss.org/browse/HIBERNATE-128?page=3Dcom.atlassian.j= ira.plugin.system.issuetabpanels:all-tabpanel ] Gonzalo Aguilar updated HIBERNATE-128: -------------------------------------- Attachment: ScreenShot-Bug[HIBERNATE-128].jpg Screenshot with error = > Hibernate tools generate wrong sequence when using multiple table-filters > ------------------------------------------------------------------------- > > Key: HIBERNATE-128 > URL: https://issues.jboss.org/browse/HIBERNATE-128 > Project: Hibernate Integration > Issue Type: Bug > Environment: Linux red1 3.0.0-16-generic #28-Ubuntu SMP Fri Jan 2= 7 17:44:39 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux > /usr/lib/jvm/java-6-openjdk/jre/bin/java > Hibernate Tools 3.4.0.CR1 > Eclipse Indigo > Reporter: Gonzalo Aguilar > Assignee: Steve Ebersole > Attachments: ScreenShot-Bug[HIBERNATE-128].jpg > > > Hibernate tools (reverse engineering) is creating wrong sequence number w= hen using different table-filters. > I also think that some interface with eclipse is doing bad things to file= cache. > First: > Sequence generation is not generated correctly when using schema tag on t= able with some table-filters. Example > > ... > > > ... > > > > contact_record_id_contact_record_seq > > > >
>
> ---> RESULT WRONG!!!! it performs a generator=3D"assigned" > > ... > > > ... > > > > contact_record_id_contact_record_seq > > > >
>
> ---> RIGHT!! BUT YOU HAVE TO SEE THE SCREENSHOT... IT DOES NOT GET UPDAT= ED IN ECLIPSE > This creates something like in eclipse. No matter what you do (refresh, c= lose and open again, etc): > > "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd"> > > > > > > > > ---- > But in the file if you see with a less command you get: = > > "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd"> > > > > > > > contact_record_id_contact_record_se= q > > > ------ > That is right. > Second: > I also got a GUI problem when reversing this: > > > > contact_record_id_contact_record_seq > > > >
> if the commented section is enabled (uncommented). That is wrong because = types does not match but it should do something and tell you that's wrong. = Instead it just crashes. The only way to make it work was adding schema to = table: > > > > contact_record_id_contact_record_seq > > > >
> But it got the sequence wrong again. = > That was really weird... > Hope it helps -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrato= rs: https://issues.jboss.org/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira =20 --===============6149852159930488172==--