Title:
Bug 75992:[JFERNANDES] Unable to load by Example as soon a Many to one relationship is added to the target Entity to be loaded
| View in TrackerStatus/Resolution/Reason: Closed/Withdrawn/
Reporter/Name(from Bugbase): João Fernandes / João Fernandes (Joao Fernandes)
Created: 03/16/2009
Components: ORM Support
Versions: 9.0
Failure Type: Unspecified
Found In Build/Fixed In Build: 0000 /
Priority/Frequency: Normal / Unknown
Locale/System: English / Platforms All
Vote Count: 0
Duplicate ID: CF-3037039
Problem:
[JFERNANDES] Unable to load by Example as soon a Many to one relationship is added to the target Entity to be loaded.
Method:
Use this 2 cfcs
entidade.cfc
<cfcomponent persistent="true" table="entidade" entityname="entidade" >
<cfproperty name="id" column="id" fieldtype="id" datatype="int" length="10" />
<cfproperty name="nome" column="nome" datatype="string"
<cfproperty
name="habilitacao" default="0" fieldtype="many-to-one"
cfc="habilitacao"
fkcolumn="habilitacao_id"
mappedby="id" lazy="true" fetch="select" >
</cfcomponent>
habilitacao.cfc
<cfcomponent persistent="true" table="habilitacao" entityname="habilitacao" >
<cfproperty name="id" column="id" fieldtype="id" datatype="integer" length="10" />
<cfproperty name="habilitacao_nome" column="habilitacao_nome" length="100" />
</cfcomponent>
Try to load by Example 'Entidade'. It will throw the above error. If property habilitacao is commented on entity 'Entidade' loadByExample works fine.
Result:
The system has attempted to use an undefined value, which usually indicates a programming error, either in your code or some system code.
Null Pointers are another name for undefined values.
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3037890
External Customer Info:
External Company:
External Customer Name: João Fernandes
External Customer Email: 4E9A42C244586146992015D5
External Test Config: 03/16/2009
Attachments:
Comments: