[
http://opensource.atlassian.com/projects/hibernate/browse/HHH-1180?page=c...
]
Steve Ebersole closed HHH-1180.
-------------------------------
Closing stale resolved issues
Property Not Found
------------------
Key: HHH-1180
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-1180
Project: Hibernate Core
Issue Type: Bug
Components: core
Affects Versions: 3.0.5
Environment: Gentoo Linux
java version "1.4.2-02"
Java(TM) 2 Runtime Environment, Standard Edition (build Blackdown-1.4.2-02)
Java HotSpot(TM) Client VM (build Blackdown-1.4.2-02, mixed mode)
Reporter: James Calfee
Priority: Minor
Attachments: AccountInError.jar
Original Estimate: 1h
Remaining Estimate: 1h
Hibernate will not deploy the following String property name:
Top_5_3rd_Party_Insuracne__c
(yes, there is a typo in Insurance)
Two objects have this property and both will not deploy (same error). All objects deploy
if this property is removed.
09:29:11,967 ERROR Configuration:365 - Could not compile the mapping document
org.hibernate.PropertyNotFoundException: field not found: Top_5_3rd_Party_Insuracne__c
at
org.hibernate.property.DirectPropertyAccessor.getField(DirectPropertyAccessor.java:96)
at
org.hibernate.property.DirectPropertyAccessor.getField(DirectPropertyAccessor.java:103)
at
org.hibernate.property.DirectPropertyAccessor.getGetter(DirectPropertyAccessor.java:111)
Here is the 'trimmed' code:
* hibernate.cfg.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Mapping DTD
3.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>
<mapping resource="AccountInError.hbm.xml"/>
</session-factory>
</hibernate-configuration>
* AccountInError.hbm.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD
3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping>
<class name="org.hibernate.bugfix.AccountInError">
<id name="Id"/>
<property name="Top_5_3rd_Party_Insuracne__c"
not-null="false"/>
</class>
</hibernate-mapping>
* org/hibernate/bugfix/AccountInError.java
package org.hibernate.bugfix;
public class AccountInError implements java.io.Serializable {
int id;
String top_5_3Rd_Party_Insuracne__c;
public AccountInError() {
}
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getTop_5_3Rd_Party_Insuracne__c() {
return top_5_3Rd_Party_Insuracne__c;
}
public void setTop_5_3Rd_Party_Insuracne__c(String top_5_3Rd_Party_Insuracne__c) {
this.top_5_3Rd_Party_Insuracne__c = top_5_3Rd_Party_Insuracne__c;
}
}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira