I wish to use the "select-before-update" attribute for a hibernate mapping.
I have tried various things with no success and before I continue, I was
hoping someone could confirm or deny my suspicion that it isn't supported by
the hibernate module, v1.2.

I'm into stuff I don't fully understand, but here's why I suspect that it
isn't supported.

Here's my XDoclet tagging:

 * @hibernate.class   table = "organization"
 *        dynamic-update = "true"
 *        select-before-update = "true"

Here's the relevant portion of the mapping file:

<?xml version="1.0"?>

<!DOCTYPE hibernate-mapping PUBLIC
    "-//Hibernate/Hibernate Mapping DTD 2.0//EN"
    "http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd";>

<hibernate-mapping>
    <class
        name="com.legaledge.harmony.modelobjects.Organization"
        table="organization"
        dynamic-update="true"
        dynamic-insert="false"
        discriminator-value="60"
    >
[...]

Now, I don't really know what I'm looking at, but in the hibernate.xdt there
is a section for <class> that looks like this (from
xdoclet-hibernate-module-1.2.jar):

    <class
      <XDtClass:ifHasClassTag tagName="hibernate.class"
superclasses="false">
        name="<XDtClass:fullClassName />"
      </XDtClass:ifHasClassTag>
      <XDtClass:ifHasClassTag tagName="hibernate.class" paramName="table"
superclasses="false">
        table="<XDtClass:classTagValue tagName="hibernate.class"
paramName="table" />"
      </XDtClass:ifHasClassTag>
      <XDtClass:ifHasClassTag tagName="hibernate.class" paramName="schema"
superclasses="false">
        schema="<XDtClass:classTagValue tagName="hibernate.class"
paramName="schema" />"
      </XDtClass:ifHasClassTag>
      <XDtClass:ifHasClassTag tagName="hibernate.class" paramName="proxy"
superclasses="false">
        proxy="<XDtClass:classTagValue tagName="hibernate.class"
paramName="proxy" />"
      </XDtClass:ifHasClassTag>
      <XDtClass:ifHasClassTag tagName="hibernate.class"
paramName="polymorphism" superclasses="false">
        polymorphism="<XDtClass:classTagValue tagName="hibernate.class"
paramName="polymorphism" values="explicit,implicit" />"
      </XDtClass:ifHasClassTag>
      <XDtConfig:ifConfigParamEquals paramName="version" value="2.0">
        dynamic-update="<XDtClass:classTagValue tagName="hibernate.class"
paramName="dynamic-update" values="true,false" default="false" />"
        dynamic-insert="<XDtClass:classTagValue tagName="hibernate.class"
paramName="dynamic-insert" values="true,false" default="false" />"
      </XDtConfig:ifConfigParamEquals>
      <XDtClass:ifHasClassTag tagName="hibernate.class" paramName="mutable"
superclasses="false">
        mutable="<XDtClass:classTagValue tagName="hibernate.class"
paramName="mutable" values="true,false" />"
      </XDtClass:ifHasClassTag>
      <XDtClass:ifHasClassTag tagName="hibernate.class"
paramName="discriminator-value" superclasses="false">
        discriminator-value="<XDtClass:classTagValue
tagName="hibernate.class" paramName="discriminator-value" />"
      </XDtClass:ifHasClassTag>
      <XDtClass:ifHasClassTag tagName="hibernate.class" paramName="where"
superclasses="false">
        where="<XDtClass:classTagValue tagName="hibernate.class"
paramName="where" />"
      </XDtClass:ifHasClassTag>
    >

>From the tiny bit that I know about XDT (really tiny), I suspect that if
select-before-update were supported, it would be in here as a paramName like
the other ones. Further evidence that it is not supported is that it doesn't
appear in the documentation at
http://xdoclet.sourceforge.net/tags/[EMAIL PROTECTED](0..1).

Am I missing something or is select-before-update not supported in the
hibernate module?

Thanks very much,
Galen Meurer



-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to