[
http://opensource.atlassian.com/projects/hibernate/browse/HHH-4474?page=c...
]
Daniel Bleisteiner commented on HHH-4474:
-----------------------------------------
The related entity is the following...
@Entity
@Table(name = Property.TABLE_NAME, uniqueConstraints = @UniqueConstraint(columnNames = {
"ENTITY_ID", "DESCRIPTOR_ID", "PROMOLEVEL_ID" }))
public class Property extends AbstractEntity {
private static final long serialVersionUID = 1L;
public static final String TABLE_NAME = "E_BUSINESS_PROPERTIES";
public static final String PROPERTY_ENTITY = "entity";
public static final String PROPERTY_DESCRIPTOR = "descriptor";
public static final String PROPERTY_PROMOLEVEL = "promolevel";
@Audited
@ManyToOne(cascade = { CascadeType.PERSIST }, optional = false)
private ProjectPropertyDescriptor descriptor;
@Audited
@ManyToOne(cascade = { CascadeType.PERSIST })
private ExtendedEntity entity;
@Audited
@ManyToOne(cascade = { CascadeType.PERSIST })
private AbstractPromotionLevel promolevel;
@Audited
@OneToMany(cascade = { CascadeType.ALL }, mappedBy = PropertyValue.PROPERTY_PROPERTY)
private List<PropertyValue> propertyValues = new
ArrayList<PropertyValue>();
// some accessors stripped!
}
NullPointerException in
AuditEventListener#generateBidirectionalCollectionChangeWorkUnits onPostInsert...
---------------------------------------------------------------------------------------------------------
Key: HHH-4474
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-4474
Project: Hibernate Core
Issue Type: Bug
Components: envers
Environment: <version>1.2.0.GA-hibernate-3.3</version>
Reporter: Daniel Bleisteiner
Attachments: stacktrace.txt
I get the exception attached as file after creating an entity. The mapping works on my
development machine... a test server throws that exception. I've tried to search for
eny differences in the tables but can't find any so far. The last time a similar error
occured I was missing the versioned entry in the version table - these have been filled
with the lowest revision available (the same way on my machine as on the test server). So
I'm stuck... I have no access to the related source either... maybe this would help!
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira