ejb « Insert « JPA Q&A





1. JPA 2.0 & EJB 3.1 - update the owner side relationship was trying to insert record?    stackoverflow.com

I have a model:

@Entity
class A {
   @ManyToOne
   B b;
   int i;
}

@Entity
class B {
   @OneToMany(mappedBy="b")
   List< A > list = new ArrayList< ...

2. How to avoid duplicate inserts in JPA HQL (EJB 3.0 - Java EE 5)    coderanch.com

Hi All, I would like to find out how to efficiently avoid duplicate inserts in JPA (EJB 3.0 - Java EE 5) & HQL. Below is the various EAR components setup in Netbeans 6.7 on Windows XP: @Stateless public class CustomerBean implements CustomerRemote { @PersistenceContext(unitName="CustomerProducer-ejbPU") private EntityManager manager; public void createCustomer(Customer customer) { manager.persist(customer); } public Customer findCustomer(String firstname, String surname, ...

3. JMS Topic to MDB to EJB to JPA - Data Integrity/Insertion Problems    java.net

Since I know for a fact that every object we are placing onto the topic is unique and not already in the DB, this tells me that somehow multiple instances of the MDB are somehow grabbing the same message off of the Topic. I'm guessing both MDB's are passing the duped object to the EJB for processing. Both EJB's do a ...

4. EJB - insert fails, non-EJB - insert succeeds    forum.hibernate.org

I wrote a simple DAO stateless session bean following several article's recommendation. The bean deploys successfully in JBoss 3.2.1. So I called the insert method from a client, and no error msg displayed. But I checked my database, and nothing was inserted. So I took converted my DAO code and changed it to the non-EJB version (where you explicitly begin and ...

5. System held in insert sql command using ejb    forum.hibernate.org

6. EJB3 BULK INSERT and UPDATES Perf. compare to RAD soft    forum.hibernate.org

Newbie Joined: Fri Mar 28, 2008 5:48 am Posts: 4 Hi all, I'm facing a performance problem which I think must be for a large part due to my lack of skill and/or knowledge : Well I'm rewriting a legacy app made with a RAD tool (Delphi like) In this app there is two tables I have to deal with carefully. ...

7. How to generate DDL in Hibernate using EJB3/JPA    forum.hibernate.org

I'm developing an EJB3/JPA application that will use Hibernate for persistence. I need to be able to generate static DDL script that can be tuned by DBAs. One possible alternative is to perhaps use EclipseLink jars only while generating the DDL. Please let me know if there is a better way, just by using Hibernate jars. Thanks in advance.