playframework « Update « JPA Q&A





1. javax.persistence/hibernate inside play    stackoverflow.com

I'm new to both hibernate and java, I'm trying to define a simple user->groups->permissions model in playframework, I want the on delete cascade rule enforced at database level and I don't ...

2. JPA , How can I tell what will be saved back to the database    stackoverflow.com

I have a JPA entity that has child collections via OneToMany relationships and I have set cascade=CascadeType.ALL however when I save the parent entity it does not save any changes done ...

3. Play framework JPA problem with save()    stackoverflow.com

I'm trying to save a simple object in the database, but it's giving me problems. This is my object class:

@Entity
@Table(name="lines")
public class Line extends GenericModel{

    @Id
    @Column(name="line_id")
 ...

4. Update a table using JPA in Play Framework    stackoverflow.com

I'm trying to update a table using JPA

EntityManager em=JPA.em();
EntityTransaction entr = em.getTransaction();
try{
if(!entr.isActive())
  entr.begin();
  Tblrecordtypefields updateTblrecordtypes = em.find(Tblrecordtypefields.class,9);
  updateTblrecordtypes.setFieldlabel("JPATest");
  em.getTransaction().commit();
}finally
{
if(entr.isActive())
entr.rollback();
}
i'm getting the error NullPointerException occured : null at updateTblrecordtypes.setFieldlabel("JPATest"); What ...

5. Calculation before db update    stackoverflow.com

I'm using Play Framework and I have what I think is a very frequent persistence problem :

  • I display a form with values coming from the database and a field 'quantity'
  • The user ...

6. playframework persist in jobs    stackoverflow.com

I'm using jobs in playframework. When I make .save() in any entity it dosen't persist in db, I think It's because the entity only is persist when controller return a result ...

7. Play app on Heroku using shared database and model updates    stackoverflow.com

I'm toying with a Play 1.2.3 application (Java) using a Heroku instance with a shared database. My question is: how to update the database schema once the application is deployed? In fact, ...

8. How to update Hibernate delivered with Play?    stackoverflow.com

Play frameworks comes with an old Hibernate version (3.6.1). How can I update Hibernate in my Play application? Via Ivy?