Transactional problem with database constraint violation when persist more than one entity

Description

We do this in one EJB transaction (REQUIERES_NEW),is to say, in one java method with transaction Requeries_NEW:

  • Create object1

  • em.persist(ob1)
    -Create object2

  • em.persist(ob2)

When the container flush the transaction, we've a database constraint violation over ob2. But when we go to database we see that ob1 is persisted.

Environment

Oracle 11g

Status

Assignee

Unassigned

Reporter

Marcial AtiƩnzar Navarro

Fix versions

None

Labels

None

backPortable

None

Suitable for new contributors

Yes, likely

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

4.2.5

Priority

Major