> 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" />

        v3 specific? 

        I looked at the nhforge ref docs and it wasn't there. If this is
already valid for v2.1, I'll add support for it very soon :). When these
elements are available in the mappings, the dialect picks them up for
parameter production like the call you showed in a query? 

                FB


> 
>     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]
> <mailto: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]
> <mailto: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.


-- 
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