eXsio / nestedj

NestedJ - a NestedSet implementation for Java
MIT License
95 stars 24 forks source link

Could you provide an example of JpaTreeDiscriminator #20

Closed ogarose closed 3 years ago

ogarose commented 3 years ago

Hi.

I can't understand how it is possible to use JpaTreeDiscriminator when the node entity has a field(collumn) with tree_id.

Could you provide an example of how it is possible to implement?

Thanks.

eXsio commented 3 years ago

Hello

Please take a look at this topic: https://github.com/eXsio/nestedj/issues/9

JPA version will/should be very similar in its usage of ThreadLocal.

ogarose commented 3 years ago

Thanks. It helped me.

It would be nice to add this example in the README.md