BUG in JPA compliance


#1

I have an Entity which have two manyToOne relations on same Entity.

A: Place1:B
A: Place2:B

So if this references to diffrent entites then then Hibertnate does then hibernate unporoxy the entites for an EJB remote call as expected. But if the relation shows to the same entity then hibernate try to initialize one of them in a closed session.

I don’t realy know if this an Wildfly Marsahlling relleated issue or hiibernate.

This error occurs on AbstractLazyInitializer:88 -> 94


#2

If you think it’s a bug, try to replicate it with this test case template, and we can investigate it afterward.