Look closer, it's right there :-)

Schema:
<xs:element name="property">
<xs:complexType>
...
 <xs:attribute name="type" type="xs:string" />
<xs:attribute name="column" type="xs:string" /> <xs:attribute name="length"
type="xs:positiveInteger" /> <xs:attribute name="precision"
type="xs:positiveInteger" /> <xs:attribute name="scale"
type="xs:nonNegativeInteger" />
...

Example:
<property name="StringData" length="100" />

    Diego


On Thu, Sep 2, 2010 at 12:05, Frans Bouma <[email protected]> wrote:

> > I forgot to add: for Criteria queries, this is set automatically if the
> > mapping has the length.
>
>         Where can you specify that? When I look at <property> I don't see a
> specification for length/precision/scale etc.
>
>                FB
>
> >
> >     Diego
> >
> >
> >
> > On Thu, Sep 2, 2010 at 11:25, Diego Mijelshon <[email protected]>
> > wrote:
> >
> >
> >       1. You can make NH generate the right parameter sizes by setting
> them
> > explicitly. Example:
> >       query.SetParameter("someProperty", value,
> > TypeFactory.GetStringType(100))
> >
> >
> > --
> > You received this message because you are subscribed to the Google Groups
> > "nhusers" group.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to
> > [email protected]<nhusers%[email protected]>
> .
> > For more options, visit this group at
> > http://groups.google.com/group/nhusers?hl=en.
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "nhusers" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<nhusers%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/nhusers?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en.

Reply via email to