[hibernate-issues] [JIRA] (HBX-2053) Changing class name in hibernate.reveng.xml is not updating the dependencies on other entities.

Srinivasa Kakarala (JIRA) jira at hibernate.atlassian.net
Thu Jul 9 15:36:47 EDT 2020


Srinivasa Kakarala ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=5f076e0be1618b001ba7536f ) *created* an issue

Hibernate Tools ( https://hibernate.atlassian.net/browse/HBX?atlOrigin=eyJpIjoiMmI3Y2Y5MmM4MWViNDgyZjg3NmI4MTZmMGZiODg4YzMiLCJwIjoiaiJ9 ) / Bug ( https://hibernate.atlassian.net/browse/HBX-2053?atlOrigin=eyJpIjoiMmI3Y2Y5MmM4MWViNDgyZjg3NmI4MTZmMGZiODg4YzMiLCJwIjoiaiJ9 ) HBX-2053 ( https://hibernate.atlassian.net/browse/HBX-2053?atlOrigin=eyJpIjoiMmI3Y2Y5MmM4MWViNDgyZjg3NmI4MTZmMGZiODg4YzMiLCJwIjoiaiJ9 ) Changing class name in hibernate.reveng.xml is not updating the dependencies on other entities. ( https://hibernate.atlassian.net/browse/HBX-2053?atlOrigin=eyJpIjoiMmI3Y2Y5MmM4MWViNDgyZjg3NmI4MTZmMGZiODg4YzMiLCJwIjoiaiJ9 )

Issue Type: Bug Assignee: Koen Aers ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3A926ec7e6-0515-4337-a65b-32fd943f79ca ) Components: hbm2java, reverse-engineer Created: 09/Jul/2020 12:36 PM Environment: https://github.com/hibernate/hibernate-tools Priority: Blocker Reporter: Srinivasa Kakarala ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=5f076e0be1618b001ba7536f )

Hello,

I am using the Maven project of Hibernate tools to reverse engineer a Database. I have some table for which I would the class name to be different from the table name. So I added an entry to hibrnate.reveng.xml to change the class name.
<table schema="informix" name="u_test1" class="xxx.xxx.Test1"></table>.
The generation now fails with below error:
hbm2java failed: Association xxx.xxx.Test2.UTest1s references unmapped class: xxx.xxx.UTest1

If I am asking the entity name to be different I am assuming it will also change the references to use the new name. Please let me know if I am missing some thing.

https://github.com/hibernate/hibernate-tools

Thanks

( https://hibernate.atlassian.net/browse/HBX-2053#add-comment?atlOrigin=eyJpIjoiMmI3Y2Y5MmM4MWViNDgyZjg3NmI4MTZmMGZiODg4YzMiLCJwIjoiaiJ9 ) Add Comment ( https://hibernate.atlassian.net/browse/HBX-2053#add-comment?atlOrigin=eyJpIjoiMmI3Y2Y5MmM4MWViNDgyZjg3NmI4MTZmMGZiODg4YzMiLCJwIjoiaiJ9 )

Get Jira notifications on your phone! Download the Jira Cloud app for Android ( https://play.google.com/store/apps/details?id=com.atlassian.android.jira.core&referrer=utm_source%3DNotificationLink%26utm_medium%3DEmail ) or iOS ( https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=EmailNotificationLink&mt=8 ) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100133- sha1:bf400b0 )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/hibernate-issues/attachments/20200709/fb9d1ae2/attachment.html 


More information about the hibernate-issues mailing list