You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@openjpa.apache.org by "Leonardo K. Shikida" <sh...@gmail.com> on 2013/10/11 04:39:15 UTC
@Auditable with tomee+ 1.5.2
Hi
I am trying to use OpenJPA @Auditable with tomee+ 1.5.2 but something
strange is happening.
persistence.xml has
<property name="openjpa.Auditor" value="xxx.Auditor"/>
my class xxx.Auditor
public class Auditor implements org.apache.openjpa.audit.Auditor {
@Override
public void endConfiguration() {
// TODO Auto-generated method stub
System.out.println("works");
}
@Override
public void setConfiguration(Configuration arg0) {
// TODO Auto-generated method stub
System.out.println("works");
}
@Override
public void startConfiguration() {
// TODO Auto-generated method stub
System.out.println("works");
}
@Override
public void close() throws Exception {
// TODO Auto-generated method stub
}
@Override
public void audit(Broker arg0, Collection<Audited> arg1,
Collection<Audited> arg2, Collection<Audited> arg3) {
System.out.println("?");
System.out.println(arg1);
System.out.println(arg2);
System.out.println(arg3);
}
@Override
public boolean isRollbackOnError() {
// TODO Auto-generated method stub
return false;
}
}
and the auditable class
@Entity
@Auditable
@Table(uniqueConstraints=@UniqueConstraint(columnNames={"description"}))
public class Application implements Serializable {
/**
*
*/
private static final long serialVersionUID = 6119051520445701552L;
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
private Long id;
(...)
I am deleting/inserting/editing the Application class but it seems the
audit() method is not being called, while endConfiguration(),
setConfiguration(), and startConfiguration() are.
I am running from inside eclipse, no stacktrace detected. Entity classes
are being enhanced on build.
TIA
Leo
Re: @Auditable with tomee+ 1.5.2
Posted by "Leonardo K. Shikida" <sh...@gmail.com>.
nope :-(
I´ve filled this bug
https://issues.apache.org/jira/browse/TOMEE-1056
which was related to this issue
https://issues.apache.org/jira/browse/OPENJPA-2437
[]
Leo
On Mon, Oct 14, 2013 at 7:24 PM, Pinaki Poddar <pp...@apache.org> wrote:
> > it seems the audit() method is not being called,
>
> does the default auditor work?
>
>
>
> -----
> Pinaki Poddar
> Chair, Apache OpenJPA Project
> --
> View this message in context:
> http://openjpa.208410.n2.nabble.com/Auditable-with-tomee-1-5-2-tp7585142p7585163.html
> Sent from the OpenJPA Users mailing list archive at Nabble.com.
>
Re: @Auditable with tomee+ 1.5.2
Posted by Pinaki Poddar <pp...@apache.org>.
> it seems the audit() method is not being called,
does the default auditor work?
-----
Pinaki Poddar
Chair, Apache OpenJPA Project
--
View this message in context: http://openjpa.208410.n2.nabble.com/Auditable-with-tomee-1-5-2-tp7585142p7585163.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.