in case it helps anyone else, here is the solution to the above
problem
the dirty_? function should (obviously) use || not &&
override def dirty_?(toCheck: User): Boolean =
Address.dirty_?(toCheck.getAddress) || super.dirty_?(toCheck)
it appears i have been suffering from a severe bout of code
blindness / stupidity!
@naftoli - I tried out your LongMappedForeignMapper pulled from github
today, and it does now seem to work as advertised by setting the long
foreign key properly. It would be nice though if a call to user.save
could propogate to all the LongMappedForeignMapper children in the
User class. I have implemented this by overriding the dirty_? function
and using a beforeSave, but there is probably a better way.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Lift" 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/liftweb?hl=en
-~----------~----~----~----~------~----~------~--~---