I am developing a new Architeture for a telecom company, and it will user Hibernate as ORM abstraction.
I did a DetachedCriteria generator, and it worked well unless for some subcriterias issues. I looked at DetachedCriteria source file and i thought it would be easier to extend it or create a new implementation based on its interface.
Well, but DetachedCriteria is a class, not an Interface and it does not implement an operations interface. Well, so i could just subclass it, but it is almost impossible because of its field and method access modifiers.
Shouldn't DetachedCriteria be an Interface or at least have an operations Interface so that i can replace its use with my own implementation like Criteria?
If it is not possible, couldn't we turn DetachedCriteria class more suitable for subclassing?
Thank you, and i am available to help if needed.
The Criteria API is considered deprecated