Entity « Batch « JPA Q&A





1. Hibernate - Keeping Entities in sync with batch database updates    stackoverflow.com

Hi I was hoping to get some input on the following problem. I'm new to Hibernate and trying to piece the puzzle together for this. Problem: I have data in my ...

2. Generate JPA entities batch mode    stackoverflow.com

I'm wandering if there is a way to generate JPA entities from tables in a batch mode. I used to do this in Eclipse, but in current situation the database schema is ...

3. "Could not execute JDBC batch update" when deleting entity    forum.hibernate.org

Newbie Joined: Tue Oct 20, 2009 4:53 pm Posts: 4 Location: Sofia, Bulgaria Hello, I am developing a simple application, where I use JPA. My JPA implementation provider is Hibernate Entity Manager. In my application, I have a Category entity. The requirement is that a category can have its sub-categories and that it is easy to get category's parent as well ...

4. Batch fetching of sub-entities    forum.hibernate.org

Code: @Entity @Cache(usage = CacheConcurrencyStrategy.READ_WRITE) public class Element { @ManyToOne(fetch = FetchType.LAZY) @JoinColumn(name = "titleId", insertable = false, updatable = false) @NotFound(action = NotFoundAction.IGNORE) private TextSet titleText; @ManyToOne(fetch = FetchType.LAZY) @JoinColumn(name = "helpId", insertable = false, updatable ...

5. Simple entities and batching -- is it possible?    forum.hibernate.org

I have an entity called Item which has two properties, price and description. No collections or associations exist on this entity. I have a list of 1,000 identifiers for which I want to retrieve the instances. What is the fastest way to do this? I tried setting the batch size in the mapping for Item to values ranging from 2 to ...

6. Batch insert shows insert for each entity    forum.hibernate.org

Hibernate version: 3.3.0.CR1 Name and version of the database you are using: MySQL 5 I just wanted to let this know to other users because I've spent almost a week searching the forums and the Internet why I kept seeing an insert statement (hibernate.show_sql=true) for each entity insert even after I specified to use batch inserts (hibernate.jdbc.batch_size=50). I changed to hilo ...