Hi Ezra,

This makes no difference. That file was a copy of the generated file I put 
there for debugging. But the code snippets tells it all:

46        <cfif  len( trim() ) and val() neq 0 > 
47                <cfset variables.isNew = false /> 
48        </cfif> 

It put me on track: the primary key in the trim and len functions was 
missing. Turned out I forgot to tell my Hibernate ORM's entity that the 
property "id" is the primary key. MG did not get a PK from CF9's orm so 
couldn't fill in one in the trim and val functions.

Instead of 
    <cfproperty name="id" type="numeric" ormType="integer" 
generated="always">
I should have 
    <cfproperty name="id" type="numeric" ormType="integer" 
generated="always" fieldtype="id">
in my Hibernate orm page.cfc

Marc

-- 
Model-Glue Sites:
Home Page: http://www.model-glue.com
Documentation: http://docs.model-glue.com
Bug Tracker: http://bugs.model-glue.com
Blog: http://www.model-glue.com/blog

You received this message because you are subscribed to the Google
Groups "model-glue" 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/model-glue?hl=en

Reply via email to