I am using ejp, it’s a simple orm framework.
If 1000+ objects were loaded with ejp, but a few of them are modified, how to save change? Should I find the the modified ones myself ?
If you have experience with ejp, please tell me.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Unlike Hibernate/JPA which associates an object with a “persistence context”, EJP does not associate objects with a given context. Objects are independent and can last beyond any context. Therefore, you want to use saveObject() when you update an object. If the object has changed, it will be updated in the database, otherwise it wont. With EJP objects are valid as long as they exist.