[hibernate-issues] [Hibernate-JIRA] Commented: (HBX-1160) Hibernate-tools don't compile with hibernate-core 3.5

André Lehmann (JIRA) noreply at atlassian.com
Fri Feb 26 08:04:47 EST 2010


    [ http://opensource.atlassian.com/projects/hibernate/browse/HBX-1160?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=35698#action_35698 ] 

André Lehmann commented on HBX-1160:
------------------------------------

Sorry for my silence in recent days. I am very busy.

I will remove the patch to hibernate-annotations, and some changes to hibernate-core. The changes were to allow the passage of parameters for Generators more fluent, rather than a simple bag like java.lang.Properties, but an amendment would be more aesthetic than functional.
I was replacing it:
[code]
Properties params = new Properties ();
//YUCK! but can not think of a clean way to do this given the config string-based scheme
params.put (PersistentIdentifierGenerator.IDENTIFIER_NORMALIZER, mappings.getObjectNameNormalizer());
[/code]

Therefore:
[code]
GeneratorProperties params = new GeneratorProperties ();
params.setNormalizer (mappings.getObjectNameNormalizer ());
[/code]

Thus we have a less generic interface that java.lang.Properties to treat, thus leaving the code more fluently when other people do the reading.

Another change in the hibernate-core is about adding the ability to identify and map tables that are in different schemas. Today, when performing a reverse engineering in which two entities have the same name but are in different SCHEMAS, the mapper takes as an ambiguous definition.

The last change was made to add the recognition of the tag <parent> and allow it to be generated by the equivalent hbm2java. It would solve the problem described in HBX-606.

The last two changes were made to the implementation of JUnits stay as green as possible. =D

As soon as possible (hopefully this week) I plan to post the new patch, ok?

> Hibernate-tools don't compile with hibernate-core 3.5
> -----------------------------------------------------
>
>                 Key: HBX-1160
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HBX-1160
>             Project: Hibernate Tools
>          Issue Type: Patch
>          Components: annotations (obsolete), ant, consoleconfiguration, datagen, doc, eclipse, hbm2doc, hbm2java, hbm2seam, hbmlint, middlegenplugin, reverse-engineer, visualizations
>         Environment: hibernate-core 3.5
>            Reporter: André Lehmann
>         Attachments: hibernate-annotations.patch, hibernate-core.patch, hibernate-testsuite.patch, hibernate-tools.patch, hibernate-tools3.5.patch
>
>
> The lastest code of Hibernate-tools don't more compile with hibernate-core trunk.
> The attached patch allow just compile HBX with hibernate-core trunk.

-- 
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

       



More information about the hibernate-issues mailing list