[hibernate-dev] Revert API change in org.hibernate.Query

2016-06-05 Thread Sanne Grinovero
I just noticed that the org.hibernate.Query interface was deprecated in 5.2, with the suggestion to use org.hibernate.query.Query now. That's ok, but it seems the "deprecation process" also forced some API changes already on the deprecated interface which seem might have been unintentional. The

[hibernate-dev] Collection was not processed by flush()

2016-06-05 Thread Petar Tahchiev
Hello, I'm using hibernate version 5.1.0.Final and spring-data-rest and I have a StockRepository which is exposed via rest and when I try to create a new stock entry I get the following exception: 2016-06-05 17:02:43,917 org.hibernate.AssertionFailure [http-nio-127.0.0.1-8112-exec-2] ERROR: