We should talk about what is required here to make sure it supports the use
case(s) you need.
"global" I assume means applying to all <hibernate-mapping/> tags. That
is
doable. Currently, using the prelimiary code, that would look like:
Map globalMeta = ...;
Metadata metadata = ...; // Metadata is sorta, kida like old Mappings
HibernateXmlBinder hbmBinder = new HibernateXmlBinder( meatdata, globalMeta );
hbmBinder.bind( xmlDocument );
hbmBinder.bind( anotherXmlDocument );
...
Not all that much different...
On Monday, October 18, 2010, at 06:43 am, Max Rydahl Andersen wrote:
It's used to allow injecting global meta tags when generating
code via
hibernate tools.
Depending on how hibernate 4 refactoring goes we might not need it
anymore...i.e. since hibernate tools would need a rewrite anyway ;0)
/max
On Oct 16, 2010, at 21:25, Steve Ebersole wrote:
> HBMBinder.bindRoot excepts a java.util.Map parameters called
> 'inheritedMetas'. Thing is, that parameter is really useless. That
> method is called from a single place in the Hibernate Core code and that
> value is defined as CollectionHelper.EMPTY_MAP in said caller.
>
> So either this code changed in such a way that this parameter was no
> longer needed but never removed, or another project uses it differently.
> Do we need this passed in still?
>
> ---
> Steve Ebersole <steve(a)hibernate.org>
>
http://hibernate.org
> _______________________________________________
> hibernate-dev mailing list
> hibernate-dev(a)lists.jboss.org
>
https://lists.jboss.org/mailman/listinfo/hibernate-dev
---
Steve Ebersole <steve(a)hibernate.org>
http://hibernate.org