Hi all,

I have a type with the following configuration:

<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" default-
access="field">
        <class name="MyAssembly.SampleEntity, MyAssembly"
table="dbo.SampleEntity" lazy="false">
                <id name="Id" column="Id">
                        <generator class="assigned" />
                </id>
                <property name="Prop1" />
                <property name="Prop2" />
        </class>
</hibernate-mapping>

We want to generate identifiers ourseleves. If we attempt to insert a
SampleEntity object into the database, why is NHibernate generating a
SELECT statement before executing an INSERT. Is there a way to stop
the SELECT being performed?

Many thanks.
Billy Stack

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