How to use JDO persistence manager?
问题 I have two questions regarding how to create / use the JDO persistence manager (PM, hereafter). Say, in a Java web application, if I have 10 entities, which can be logically grouped into 2 groups (for example, 5 user related entities and 5 business related entities) Should I need two different PMs to manage these 2 groups or only one PM is enough? Regarding the initialization, shall I use singleton instance of a PM (which will be shared by all the user's using the app at a given point of time