We started writing a Java Framework for our company. But we don't have enough experience about Java. We decided to use JPA framework for database CRUD operations.
What do you suggest about that:
- about defining
persistence.xml
. We search creating dynamicEntityManager
and found some documents but we don't know that is it best way. - Is it a good way that create a layer over JPA base db operations? (for example CRUD methods.)
- How can we do calling JPA CRUD methods from my CRUD methods in framework?
- We will use this framework for desktop and web applications. Is deployment a problem for us.
- Do we have to use EJB?
- Is there alternative to JPA which you suggest? (example: ADF,JDBC)
Thanks