Elisabitao / honeycrm

Automatically exported from code.google.com/p/honeycrm
0 stars 0 forks source link

services are stolen from offering after creating a contract from it #50

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. create an offering with a few services
2. save it and click create contract
3. the services are visible in the contract but not in the offering

What is the expected output? What do you see instead?
services should be copied from offering to contract. contract should have the 
same services like the offering but they should remain in the offering too.

Please use labels and text to provide additional information.

Original issue reported on code.google.com by ingo.jae...@gmail.com on 9 Aug 2010 at 8:53

GoogleCodeExporter commented 9 years ago
see 
http://groups.google.com/group/google-appengine-java/browse_thread/thread/8cdf60
6a0bbe4c36/fe8439f35478cfba?show_docid=fe8439f35478cfba#

since r222 the service class does not inherit from the same class like its 
parent anymore (i.e. AbstractEntity). instead all persistable objects implement 
the Bean interface. this, however, does not solve the problem either as it 
seems: the problem can be reproduced when deployed to app engine. create 
offerings/contracts with a few services or none. then wait for some time e.g. 
30 minutes. the children i.e. Service instances have then disappeared from the 
offerings/contract.

Original comment by ingo.jae...@gmail.com on 6 Sep 2010 at 11:34

GoogleCodeExporter commented 9 years ago
hope this is fixed in r226,r227,r228: we do not store lists of children anymore 
in the parent objects. instead we only store List<Key> children in the parent 
entities and resolve the children within DtoCopyMachine. this still has to be 
generalized and is currently only supported for Service children.

Original comment by ingo.jae...@gmail.com on 8 Sep 2010 at 10:05