Tihomir Meščić created LOG4J2-792:
-------------------------------------

             Summary: JPA Appender persists an extra column called wrappedevent
                 Key: LOG4J2-792
                 URL: https://issues.apache.org/jira/browse/LOG4J2-792
             Project: Log4j 2
          Issue Type: Bug
          Components: Appenders
    Affects Versions: 2.0.1
            Reporter: Tihomir Meščić


When using the JPA Appender, one has the create an entity class that extends 
log4j's BasicLogEventEntity/AbstractLogEventWrapperEntity. If using automatic 
schema creation (e.g. for Hibernate, setting hibernate.hbm2ddl.auto=update), an 
extra column called 'wrappedevent' will be created in the table, and it will 
always be filled with garbage when the entity is persisted. This is because the 
AbstractLogEventWrapperEntity class has a field called 'wrappedEvent'. To 
reslove this issue, the field should be marked as @Transient.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to