Rob Hills wrote:
>> @Override
>> public Journalentry save(Journalentry object) {
>> if (object.getTransaction() == null){
>> Gltransaction trans = gltransactionDao.save(new
>> Gltransaction());
>>
> This isn't related to the main problem you're having, but if you've
> correctly defined the relationship between Gltransaction and
> Journalentry in the model classes, then you don't need to do the
> gltransactionDao.save() bit. Just instantiate the transaction and add
> it to the Journalentry (as you do in the following line).
>> object.setTransaction(trans);
>> }
It _would_ be directly related if that's true - that's how I came to this
point, because it was objecting to the values of the Gltransaction; that
could well have been another problem, though, so I'll give it another try.
Nope. I get this:
org.springframework.dao.InvalidDataAccessApiUsageException: object
references an unsaved transient instance - save the transient instance
before flushing: ca.pointerstop.cocoa.model.Gltransaction;
So, that probably gets me back to "correctly defined the
relationship..." :-)
> 2. Go through your applicationContext.xml (btw you called it
> ApplicationContext.xml, I assume that was a typo, from memory the first
> letter should be lowercase) with a fine tooth comb - particularly look
> for incorrect case and typos.
I have to assume it's the right file, since manually injecting the spring
beans in the ActionTest worked :-) I was typing from memory, not copying
the name from the system.
--
derek
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]