Re: [hibernate-dev] H4 mapping xsd question

2012-07-16 Thread Steve Ebersole
Awesome! Just make sure that cases where you do this, the ordering amongst the elements is not important. On Mon 16 Jul 2012 06:32:37 AM CDT, Hardy Ferentschik wrote: > Awesome. Finding the right JAXB customization process/plugin is really like > finding the needle in the haystack. > I will mak

Re: [hibernate-dev] H4 mapping xsd question

2012-07-16 Thread Hardy Ferentschik
Awesome. Finding the right JAXB customization process/plugin is really like finding the needle in the haystack. I will make a great blog entry if we summarize our different techniques. --Hardy On Jul 16, 2012, at 1:21 PM, Strong Liu wrote: > > On Jul 10, 2012, at 10:04 PM, Steve Ebersole wr

Re: [hibernate-dev] H4 mapping xsd question

2012-07-16 Thread Strong Liu
On Jul 10, 2012, at 10:04 PM, Steve Ebersole wrote: > If you can get JAXB to perform that binding for you great! There are lots of > places where we have this. yes, I made it :D https://github.com/stliu/hibernate-orm/commit/d57ffbdb32b8450599f30c9c28a4918ff9752802 https://github.com/stliu/h

Re: [hibernate-dev] H4 mapping xsd question

2012-07-10 Thread Steve Ebersole
There are 2 parts though, the class generation and then the binding. As long as the plugin allows some hook into the binding process as well... On Tue 10 Jul 2012 09:09:14 AM CDT, Hardy Ferentschik wrote: > > On Jul 10, 2012, at 4:04 PM, Steve Ebersole wrote: > >> If you can get JAXB to perform

Re: [hibernate-dev] H4 mapping xsd question

2012-07-10 Thread Hardy Ferentschik
On Jul 10, 2012, at 4:04 PM, Steve Ebersole wrote: > If you can get JAXB to perform that binding for you great! There are lots of > places where we have this. > > Just to be clear, however, we cannot change the XSD to accomplish this in a > way that means changes to end-user syntax. I think

Re: [hibernate-dev] H4 mapping xsd question

2012-07-10 Thread Steve Ebersole
If you can get JAXB to perform that binding for you great! There are lots of places where we have this. Just to be clear, however, we cannot change the XSD to accomplish this in a way that means changes to end-user syntax. On 07/10/2012 03:43 AM, Hardy Ferentschik wrote: > Type checking always

Re: [hibernate-dev] H4 mapping xsd question

2012-07-10 Thread Hardy Ferentschik
Type checking always sucks in this context. I also would try to minimize it as much as possible. Provided your suggested change still allows to parse existing mapping documents I don't see why we should not make our code easier to write. --Hardy On Jul 10, 2012, at 10:35 AM, Strong Liu wrote:

Re: [hibernate-dev] H4 mapping xsd question

2012-07-10 Thread Strong Liu
current is defined as : then the generated org.hibernate.internal.jaxb.mapping.hbm.JaxbQueryElement has a _getContent()_ method for both String/Text and query-param attribute * Objects of the following type(s) are allowed i

Re: [hibernate-dev] H4 mapping xsd question

2012-07-06 Thread Hardy Ferentschik
Hi, first up some info regarding the xsd. We initially auto generated it from our dtd and then made some adjustments to resolve some conflicts. The outcome is for sure less than optimal. > I have two question about this xsd: > > 1. why we use xs:string for attributes such as timeout, batch-size