-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 
Author Message
 Post subject: How to enabled reflection optimizer
PostPosted: Wed Mar 22, 2006 5:12 pm 
Newbie

Joined: Wed Feb 01, 2006 3:30 pm
Posts: 7
Hi,

I keep getting

"Disabling reflection optimizer"

Log messages for all my nhibernate mapped classes.

How do I enabled the reflection optimizer?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 22, 2006 6:49 pm 
Contributor
Contributor

Joined: Thu May 12, 2005 8:45 am
Posts: 226
What access strategy are you using on your columns? If I remember correctly, the optimizer only works when using the default 'property' access strategy.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 22, 2006 6:55 pm 
Newbie

Joined: Wed Feb 01, 2006 3:30 pm
Posts: 7
I should be using the default. Here is one of the smaller mapping files:

Code:
<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.0">
  <class name="Com.Klinitek.Census.Shared.Model.Location, Com.Klinitek.Census.Shared" table="Location">
    <id name="Id" column="id_location" type="System.Int32">
      <generator class="identity"/>
    </id>

    <property name="PointOfCare" column="point_of_care" type="System.String" not-null="true"/>
    <property name="Room" column="room" type="System.String" not-null="false"/>
    <property name="Bed" column="bed" type="System.String" not-null="false"/>
    <property name="Description" column="description" type="System.String" not-null="false"/>
    <many-to-one name="Type" column="type_code"
                  class="Com.Klinitek.Census.Shared.Model.LocationType, Com.Klinitek.Census.Shared" cascade="none" not-null="true"/>
    <many-to-one name="Status" column="status_code"
                 class="Com.Klinitek.Census.Shared.Model.LocationStatus, Com.Klinitek.Census.Shared" cascade="none" not-null="false"/>
    <property name="IsSwing" column="swing_bed" type="System.Boolean" not-null="false"/>
    <property name="DateCreated" column="date_created" type="System.DateTime" not-null="true"/>
    <property name="DateLastModified" column="last_modified" type="System.DateTime" not-null="true"/>
    <property name="IsActive" column="active" type="System.Boolean" not-null="true"/>
  </class>
</hibernate-mapping>


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 23, 2006 8:47 am 
Contributor
Contributor

Joined: Wed May 11, 2005 4:59 pm
Posts: 1766
Location: Prague, Czech Republic
The reason why the optimizer was disabled should appear in the logs if you set the log level to at least DEBUG.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.