Hide Forgot
Created attachment 562110 [details] Test Case Since Skynet was changed to use Lazy Loading updating entities that contain lazy loaded collections now fails via the REST Interface. One of the errors is: "org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: com.redhat.topicindex.entity.Topic.childTopicToTopics, no session or session was closed" I believe this error to be the cause of attempting to retrieve collections (eg in createRESTEntityFromDBEntity) after committing a transaction. Closing the transaction closes the session/proxy that the lazy loading would normally use. I've attached a Test Case to demonstrate that creating an entity works because everything is loaded before the transaction is committed, while attempting to update an entity fails.
Fixed in 20120216-0726 The BaseRestv1.updateEntity() method now modifies the database entity and expands the returned REST entity in one transaction.