romanb / JPA-NestedSet

A NestedSet implementation for use with JPA(2)
31 stars 27 forks source link

NestedSet & Play! framework model #3

Open poum opened 13 years ago

poum commented 13 years ago

I've tried to use JPANestedset which seems great and perfectly respond to my need but Play! model uses long ID and NodeInfo int ID..... I'm not a Java GURU and I don't know workaround to inherit from Play model & implement NodeInfo in the same time ...

But, is an int ID enough ? Should not a long better suitable for this need ?

PS: great work & many thanks PSPS: sorry for my english :-(

JustinTArthur commented 12 years ago

The solution might be to have the NodeInfo interface to not enforce the id field, instead relying on the JPA API to derive information about the id field—by no means a bad thing.