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, is there a specific
reason?
I'm purposing this change
https://gist.github.com/3059390
I think it is just a result of the transformation. Changing it to xs:int seems reasonable
to me. There are probably
other cases we could improve.
2. we used to have this with the dtd, but I doubt if it is still
possible with in the current xsd. at least I could not find how to get this query text
form org.hibernate.internal.jaxb.mapping.hbm.JaxbSqlQueryElement
not a xsd guy, can someone take a look?
<sql-query name="orgNamesOnly">
<return-scalar column="NAME" type="string"/>
SELECT org.NAME FROM ORGANIZATION org
</sql-query>
What do you get from JaxbSqlQueryElement#getContent. I could imagine that is is part of it
and you need to cast. Probably another spot where we need to do some manual changes.
--Hardy