From noreply at atlassian.com Thu Aug 14 05:26:06 2008 Content-Type: multipart/mixed; boundary="===============5629239281350046250==" MIME-Version: 1.0 From: Anders Reinhardt Hansen (JIRA) To: hibernate-issues at lists.jboss.org Subject: [hibernate-issues] [Hibernate-JIRA] Created: (HBX-1082) Creating a formula property when reverse engineering Date: Thu, 14 Aug 2008 04:26:06 -0500 Message-ID: <1509608.1218705966182.JavaMail.j2ee@atlassian01.managed.contegix.com> --===============5629239281350046250== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Creating a formula property when reverse engineering ---------------------------------------------------- Key: HBX-1082 URL: http://opensource.atlassian.com/projects/hibernate/br= owse/HBX-1082 Project: Hibernate Tools Issue Type: Improvement Components: reverse-engineer Affects Versions: 3.2.beta11 Environment: All environments Reporter: Anders Reinhardt Hansen Priority: Minor Having lots of formula properties in mapping files is quite frustrating whe= n reverse engineering database changes. Therefore it would be a big help if there was a way to write formula proper= ties in the Hibernate Reverse Engineering files. A property formula is a property of a mapping file which is calculated by h= ibernate. I.e. the reveng file could look like this ... Maybe the reverse engineering file is not the correct place for this featur= e. Suggestions are welcome -- = This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: htt= p://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira =20 --===============5629239281350046250==-- From noreply at atlassian.com Tue Jun 30 08:21:10 2009 Content-Type: multipart/mixed; boundary="===============6243785469600072305==" MIME-Version: 1.0 From: Joachim Durchholz (JIRA) To: hibernate-issues at lists.jboss.org Subject: [hibernate-issues] [Hibernate-JIRA] Commented: (HBX-1082) Creating a formula property when reverse engineering Date: Tue, 30 Jun 2009 07:06:15 -0500 Message-ID: <1749686459.771246363575943.JavaMail.j2ee-opensource-projects@vps07.contegix.com> In-Reply-To: 1509608.1218705966182.JavaMail.j2ee@atlassian01.managed.contegix.com --===============6243785469600072305== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable [ http://opensource.atlassian.com/projects/hibernate/browse/HBX-1082?pa= ge=3Dcom.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focus= edCommentId=3D33499#action_33499 ] = Joachim Durchholz commented on HBX-1082: ---------------------------------------- This would be very useful. I have a company table C with a join to an attribute table A like this: C.company_id =3D A.company_id AND 1 =3D A.tag I can work around this by using a VIEW like this: CREATE OR REPLACE A_VIEW SELECT * FROM A WHERE A.tag =3D 1 The downside is that Hibernate doesn't identify the primary key in A_VIEW, = so I routinely add tags to the declaration for A_VIEW= in hibernate.reveng.xml. Since the overhead is not just in initial declaration but also in maintenan= ce, allowing formulae in hibernate.reveng.xml would reduce my workload a bi= t. > Creating a formula property when reverse engineering > ---------------------------------------------------- > > Key: HBX-1082 > URL: http://opensource.atlassian.com/projects/hibernate/b= rowse/HBX-1082 > Project: Hibernate Tools > Issue Type: Improvement > Components: reverse-engineer > Affects Versions: 3.2.beta11 > Environment: All environments > Reporter: Anders Reinhardt Hansen > Priority: Minor > > Having lots of formula properties in mapping files is quite frustrating w= hen reverse engineering database changes. > Therefore it would be a big help if there was a way to write formula prop= erties in the Hibernate Reverse Engineering files. > A property formula is a property of a mapping file which is calculated by= hibernate. > I.e. > > > > the reveng file could look like this > > ... > > > Maybe the reverse engineering file is not the correct place for this feat= ure. Suggestions are welcome -- = This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: htt= p://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira =20 --===============6243785469600072305==--