-->
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.  [ 2 posts ] 
Author Message
 Post subject: Warning message
PostPosted: Sat Apr 23, 2005 9:15 am 
Newbie

Joined: Sat Mar 19, 2005 3:25 am
Posts: 9
22:38:17,441 WARN [PersistenceContext] Narrowing proxy to class com.intaglio.server.api.hibernate.Project - this operation breaks ==


does anyone know what this means and how do I fix it.

Here is my config file

<hibernate-mapping>
<class name="com.intaglio.server.api.hibernate.Item" table="IItem" dynamic-update="true">
<id name="id" type="long">
<column name="RID" sql-type="bigint" not-null="true"/>
<generator class="native"/>
</id>
<discriminator column="contentType" type="string"/>
<timestamp name="lastModifiedDate" column="lastModifiedDate"/>

<property name="createdDate" type="calendar" update="false" not-null="false">
<column name="createdDate" sql-type="timestamp"/>
</property>

<property name="sid" type="string" not-null="true" unique="true">
<column name="sid" sql-type="varchar" length="255"/>
</property>

<property name="name" type="string" not-null="true">
<column name="name" sql-type="varchar" length="50"/>
</property>

<property name="description" type="string" not-null="false">
<column name="description" sql-type="varchar" length="255"/>
</property>

<property name="isSecurityPolicyInherited" type="boolean" not-null="false">
<column name="isSecurityPolicyInherited" sql-type="tinyint"/>
</property>

<one-to-one name="parent" class="com.intaglio.server.api.hibernate.Item" foreign-key="parentID"/>

<many-to-one name="securityPolicy" class="com.intaglio.server.api.hibernate.SecurityPolicy" column="securityPolicyID" not-null="false"/>
<many-to-one name="owner" class="com.intaglio.server.api.hibernate.User" column="ownerID" not-null="true"/>
<many-to-one name="createdByUser" class="com.intaglio.server.api.hibernate.User" column="createdByID" update="false" not-null="true"/>
<many-to-one name="lastModifiedByUser" class="com.intaglio.server.api.hibernate.User" column="lastModifiedByID" update="false" not-null="true"/>
<many-to-one name="typeDescription" class="com.intaglio.server.api.hibernate.TypeDescription" column="typeDescriptionID" not-null="false"/>
<many-to-one name="itemWorkspace" class="com.intaglio.server.api.hibernate.Workspace" column="itemWorkspaceID" not-null="false"/>
<many-to-one name="itemProject" class="com.intaglio.server.api.hibernate.Project" column="itemProjectID" not-null="false"/>

<joined-subclass name="com.intaglio.server.api.hibernate.Facility" table="IFacility" >
<key column="RID"/>
<set name="workspaces" table="IWorkspace" lazy="true" inverse="true">
<key column="facilityID"/>
<one-to-many class="com.intaglio.server.api.hibernate.Workspace"/>
</set>
<many-to-one name="repository" class="com.intaglio.server.api.hibernate.Repository" column="repositoryID" not-null="false"/>
</joined-subclass>

<joined-subclass name="com.intaglio.server.api.hibernate.Workspace" table="IWorkspace" >
<key column="RID"/>
<many-to-one name="facility" class="com.intaglio.server.api.hibernate.Facility" column="facilityID" not-null="false"/>
</joined-subclass>

<joined-subclass name="com.intaglio.server.api.hibernate.Project" table="IProject" >
<key column="RID"/>
</joined-subclass>
</class>
</hibernate-mapping>


Top
 Profile  
 
 Post subject:
PostPosted: Sun Aug 28, 2005 4:47 pm 
Newbie

Joined: Sun Aug 28, 2005 2:13 pm
Posts: 9
To really understand your problem, one would need more information. Specifically, which piece of your code triggers the warning?

Anyhow, since you have show a mapping file will inheritance, your problem is probably related to this:

http://www.hibernate.org/280.html

Unfortunately, there seem to be other cases in which retrieving polymorph collections trigger this warning without using instanceof or such, or a load with a more specific type. (I have seen another post about that). I will probably post a related topic on my own soon.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.