1. Should raw Hibernate annotated POJO's be returned from the Data Access Layer, or Interfaces instead? stackoverflow.comI understand separating the data layer objects (DAOs) in their own layer that abstracts the data access logic and data source specifics from service and business layers as outlined in |
2. POJOS implementing interface with static fields forum.hibernate.orgHi All, Does the Garbage Collector collects the POJO's which implements the interface(which has static fields). I am facing the situvation like the gc is not collecting these POJO's even after the user has signoff from the application.Inturn my application is running out of space. Any thing i need to do , so that these pojos will get collected by GC(). ... |
3. Using interfaces with POJOs and HQL forum.hibernate.orgI forgot to mention I use XDoclet 1.2.3. As XDoclet tags are annotated in the implementation classes; XDoclet produce a file named XxxImpl.hbm.xml. The side effect of this is that I have to use XxxImpl in my queries. There is a solution, just add: |
4. Can i use an Interface as a pojo object to be persistent? forum.hibernate.orgi try to use an interface to be persistent. in hbm.xml : |