vers please take a look at [1] when you have a
> chance.
>
> Thanks!
> Gail
>
> [1] https://github.com/hibernate/hibernate-orm/pull/1079
> <https://github.com/hibernate/hibernate-orm/pull/1079>
> [2] https://github.com/hibernate/hibernate-orm/pull/847
>
then I also started thinking.. doesn't Envers always just use the Map
> entity mnde and access strategy? And if so, why is it trying to resolve a
> named access strategy?
To write audit data - yes, but as far as I remember the different access modes
where to *read* data from the user
lass B extends AbstractB {
>private int intValue;
> }
>
> @MappedSuperclass
> @Audited
> public class AbstractB {
>private String strValue;
> }
@NotAudited has precedence - so not audited.
I hope things are a bit clearer :). I suppose we should document thes
st...@hibernate.org
> http://hibernate.org
> ___
> hibernate-dev mailing list
> hibernate-dev@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/hibernate-dev
--
Adam Warski
http://twitter.com/#!/ad
hemaTest.initData[0]
>>>>> 0.0090 1
>>>>> org.hibernate.envers.test.integration.reventity.DifferentDBSchemaTest.testHistoryOfId1[0]
>>>>> 0.0010 1
>>>>> org.hibernate.envers.test.integration.reventity.DifferentDBSchemaT
SPIs can have bugs as well ;)
Adam
--
Adam Warski
http://twitter.com/#!/adamwarski
http://www.softwaremill.com
http://www.warski.org
___
hibernate-dev mailing list
hibernate-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/hibernate-dev
//hibernate.org
> ___
> hibernate-dev mailing list
> hibernate-dev@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/hibernate-dev
--
Adam Warski
http://twitter.com/#!/adamwarski
http://www.softwaremill.com
http://www.warski.org
is sharing too
> much.
I must have missed that somehow, sorry.
--
Adam Warski
http://twitter.com/#!/adamwarski
http://www.softwaremill.com
http://www.warski.org
___
hibernate-dev mailing list
hibernate-dev@lists.jboss.org
https://lists.jb
> Adam, are there any Envers issues that should be backported for 3.6.10? If
> so, please create new issues for them and assign as appropriate.
Nope, nothing that I'm aware of. We've been adding some new features only.
--
Adam Warski
http://twitter.com/#!
Here's the Envers forum post: http://community.jboss.org/message/629739#629739
And stack trace: http://pastie.org/2612279
Adam
On Oct 3, 2011, at 11:05 AM, Adam Warski wrote:
> Hello,
>
> was Hibernate4 integrator discovery tested on Tomcat7? I have two users
> reporting t
would mean that the file in META-INF specifying the integrator is
visible, but the class itself - not.
Adam
--
Adam Warski
http://twitter.com/#!/adamwarski
http://www.softwaremill.com
http://www.warski.org
___
hibernate-dev mailing list
---
>>> Strong Liu
>>> http://hibernate.org
>>> http://github.com/stliu
>>>
>>> On Aug 4, 2011, at 8:35 PM, Scott Marlow wrote:
>>>
>>>> On 08/04/2011 04:05 AM, Strong Liu wrote:
>>>>>
>>>>> ---
>&g
that the dependencies declaration in the app's meta-inf affects the interaction
between modules.
Still the bundled-envers-only-inside-app scenario doesn't work. But I'm not
sure it's valid any more, as I've got it working in AS7 and you've done the
integrati
ibrary in their application or as a module in JBoss.
Adam
--
Adam Warski
http://twitter.com/#!/adamwarski
http://www.softwaremill.com
http://www.warski.org
___
hibernate-dev mailing list
hibernate-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/hibernate-dev
which would depend on
org.hibernate, but the Hibernate doesn't seem to see the Envers Integrator.
Strong Liu: isn't it something you've prepared a patch for? I don't think it
was included?
Adam
On Jun 21, 2011, at 8:23 AM, Adam Warski wrote:
>
> On Jun 20, 2011, at 7
ev] Patch for HHH-6361 / HHH-6349 : Envers loses
> audit information due to a Hibernate core bug
>
> Looks good. I added a few minor comments. I'd like to see the Map
> sizing thing addressed and the 4.0 port done, but I have no problems
> with these changes.
>
> On Fri 08
r any part thereof. If you receive this
> message in error, please notify the sender immediately and delete all copies
> of this message.
> ___
> hibernate-dev mailing list
> hibernate-dev@lists.jboss.org
> https://lists.jboss.org/mailman/list
classes - will
Hibernate see it on startup? The same applies to Envers - Hibernate should see
the integrator if the module is enabled.
--
Adam Warski
http://twitter.com/#!/adamwarski
http://www.warski.org
http://www.softwaremill.eu
___
hibernate-dev mailing list
hibernate-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/hibernate-dev
lass from the ActionQueue?
What do you think?
Adam
--
Adam Warski
http://twitter.com/#!/adamwarski
http://www.warski.org
http://www.softwaremill.eu
___
hibernate-dev mailing list
hibernate-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/hibernate-dev
tClassLoader() to
> reload the resource again.
>
> here are the changes:
> https://github.com/stliu/hibernate-core/commit/09ce5defabea8cfb87d06c3d7b9bc1a2c613f62c
> https://github.com/stliu/jboss-as/commit/616237755626672157fb2ae565fadb16cf47af89
>
> thoughts?
I wish I could help here, but regarding Integrat
nate.org
> http://github.com/stliu
>
> On Jun 3, 2011, at 3:40 PM, Adam Warski wrote:
>
>> Fixed, sorry!
>>
>> I wonder why I didn't get a compile error - I've got maven 3.0.2 and I'm
>> doing a "mvn clean install".
>> Which M
> there is an compile error in envers in 3.6 branch, which causes our internal
> hudson job fail, would you please take a look, thanks
Ah, I didn't commit one file yesterday. Fixed now, sorry!
--
Adam Warski
http://www.warski.org
http://www.soft
created from the
>>>> Session it wraps using a static helper which searches for it's own
>>>> PostInsertEventListener in the Session itself, from which it takes a
>>>> reference to the needed SearchFactoryImplementor.
>>>>
>>
to the caller.
On the second time the session returns the already created FTS (so there would
be a per-session cache of the created wrappers inside the Session).
Adam
--
Adam Warski
http://www.warski.org
http://www.softwaremill.eu
___
hi
lTextSessions that could have unwrap
methods similar to the ones in EM. Not sure it would be useful though ;)
Adam
> On 04/06/2011 06:26 AM, Adam Warski wrote:
>>
>> On Apr 6, 2011, at 1:20 PM, Steve Ebersole wrote:
>>
>>> The phrase 'unwrap' might be a bit mis
sounds good; so it would be something like a per-session
service? :)
Envers could use it as well, right now just as search has
Search.getFullTextSession, envers has AuditReaderFactory.getFor
So we could have session.service(AuditReader.class / FullTextSession.class).
Adam
> On Apr 6, 2011 6:15 AM
uld have an unwrap method and Hibernate would delegate the unwrap calls to
> each integrator until a non null object is returned.
>
> It's just a thought, WDYT?
But while EntityManager wraps a Session object, a Session doesn't wrap a
FullTextSession, but the other
ure would be very welcome :)
Adam
--
Adam Warski
http://www.warski.org
http://www.softwaremill.eu
___
hibernate-dev mailing list
hibernate-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/hibernate-dev
ave it setup and
> run.
There's a
hibernate.listeners.envers.autoRegister
config property, is that what you need?
--
Adam Warski
http://www.warski.org
http://www.softwaremill.eu
___
hibernate-dev mailing list
hibernate-dev@l
is the services discovery working.
Apart from that, can't think of anything :)
--
Adam Warski
http://www.warski.org
http://www.softwaremill.eu
___
hibernate-dev mailing list
hibernate-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/hibernate-dev
Even better then :)
Adam
On Mar 30, 2011, at 8:23 PM, Steve Ebersole wrote:
> Hibernate 4 targets java 6
>
> On Wednesday, March 30, 2011, at 01:16 pm, Adam Warski wrote:
>> Heh sorry, pasted the wrong link :) This should be the right one:
>> http://java.sun.com/develo
PM, Steve Ebersole wrote:
> This is exactly what I have done. There is no standard java mechanism for
> doing this. Your link simply shows how one piece of java (Sound API) does it.
> On Wednesday, March 30, 2011, at 11:22 am, Adam Warski wrote:
> > Did you think about using th
ay because they already had the reflection code in place to do this. So for
> it, we need to decide if we want to go the opposite way.
>
>
> ---
> Steve Ebersole
> http://hibernate.org
> ___
> hibernate-dev mailing list
&g
> http://hibernate.org
> ___
> hibernate-dev mailing list
> hibernate-dev@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/hibernate-dev
--
Adam Warski
http://www.warski.org
http://www.softwaremill.eu
_
search each
> had unique set of problems; even the default listeners had issues.
>
> ---
> Steve Ebersole
> http://hibernate.org
> _______
> hibernate-dev mailing list
> hibernate-dev@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/hibernate-
e.net/apps/mediawiki/hibernate/index.php?title=Category:Services
>
>
> ---
> Steve Ebersole
> http://hibernate.org
> ___
> hibernate-dev mailing list
> hibernate-dev@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/hibern
t
>>>
>>> 8) Push changes
>>> git push
>>>
>>> 9) Clean up
>>> git branch -d HHH-5706-lob-offset
>>> git branch -d HHH-5706-lob-offset-backport
>>>
>>>
>>> Lot of work. Lot of the folks on #git seemed to empath
nvers with the appropriate module)
>>
>> 5. Apply the patches using git am
>> 6. Done
>>
>> Not very straightforward, but works. And maybe somebody will find a better
>> way :)
>
> ---
> Steve Ebersole
> http://hibernate.org
--
Ada
owing script:
#!/bin/bash
for file in $*
do
sed 's/\/envers\//\/hibernate-envers\//' < $file > mod_$file
done
(substitute envers with the appropriate module)
5. Apply the patches using git am
6. Done
Not very straightforward, but works. And maybe somebody will find a bet
(the ones that are before went into the uber-jar and are not transitive deps of
the hibernate core artifact)?
--
Adam Warski
http://www.warski.org
http://www.softwaremill.eu
___
hibernate-dev mailing list
hibernate-dev@lists.jboss.org
https://lists.j
;>
>>>
>>> ___
>>> hibernate-dev mailing list
>>> hibernate-dev@lists.jboss.org
>>> https://lists.jboss.org/mailman/listinfo/hibernate-dev
>>
>
>
_
> hibernate-dev mailing list
> hibernate-dev@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/hibernate-dev
--
Adam Warski
http://www.warski.org
http://www.softwaremill.eu
___
hibernate-dev mailing list
hibernate-dev@lists.jboss.o
; factory.
Sounds good. So it wouldn't be illegal to use a different entity mode than the
one specified for a SessionFactory, as long as one entity type is used
consistently with one entity mode? (Currently Envers specifies the entity mode
as map in the hibernate entity mapping it gener
gration with
> scripting languages and such, but beyond that I am not sure TBH.
Envers is also using the Map mode to map audit entities. Maybe an entity type
could be bound to a single entity mode? At least in the scope of a session
factory?
--
Adam Warski
http://www.warski.org
http://www.
the same problem but I could not pin point the
> issue.
> Can you point me to the temp patch approach you're using.
>
> On 10 juil. 2010, at 10:05, Adam Warski wrote:
>
>> Hello,
>>
>> because the thread is a bit old a small reminder what it was about:
&
temporary patch :)
On Mar 31, 2010, at 1:00 PM, Adam Warski wrote:
>
>> In an ideal world, a Synchronization should swallow exceptions (or do
>> whatever it wants with it) if the exception should not tamper with the main
>> Hibernate execution. In a word, Synchroniza
mplified this, so that the type properties
are always added if they are present. The fix is committed and all (Envers)
tests pass.
--
Adam Warski
http://www.warski.org
http://www.softwaremill.eu
___
hibernate-dev mailing list
hibernate-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/hibernate-dev
> there is a workaround,
> http://jira.opensymphony.com/browse/TESTNG-204?focusedCommentId=32518&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#action_32518
Ah :) Only 524 annotations to change ;) Some day maybe ... :)
--
Adam Warski
http://www.warsk
s are run in the job, doesn't really matter if they are
categorized or not :)
Thanks for the answers.
--
Adam Warski
http://www.warski.org
http://www.softwaremill.eu
___
hibernate-dev mailing list
hibernate-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/hibernate-dev
Hello,
>
> where is the uncategorized test?
> would you please give the url, thanks
e.g. in latest build, the (root) category has 522 tests:
http://hudson.jboss.org/hudson/view/hibernate/job/hibernate-core-trunk/lastBuild/testReport/%28root%29/
--
Adam Warski
http://www.warski
, guys, time to make testsuite jobs blue!
>
> and questions are always welcome :D
>
>
> -
> Best Regards,
>
> Strong Liu
>
>
>
>
> ___
> hibernate-dev mailing list
> hibernate-dev@lists.jboss
((sync instanceof SynchronizationRollback) && ((SynchronizationRollback)
sync).shouldRollback(exception) { // rollback }
--
Adam Warski
http://www.warski.org
http://www.softwaremill.eu
___
hibernate-dev mailing list
hibernate-dev@lists.jboss.or
o.h.Transaction into the Synchronization constructor and actually roll
> it back if an error occurs.
Right. Then I was thinking about two solutions:
1) as Hernan wrote above
2) check if the TX wasn't rolled back by the synchronization
(tx.isMarkedForRollBack or sth similar) explicitly. If s
hat something bad
has happened. Or at least give him an option to let him know.
So, any opinions pro/con to changing the
org.hibernate.transaction.JDBCTransaction? :)
--
Adam Warski
http://www.warski.org
http://www.softwaremill.eu
___
hibern
sible that
the transaction commits, but the data isn't indexed properly, if the
queueingProcessor.performWorks throws an exception?
--
Adam Warski
http://www.warski.org
http://www.softwaremill.eu
___
hibernate-dev mailing list
hibernate-dev@
gt;>
>>
>
> --
> st...@hibernate.org
> http://hibernate.org
> ___
> hibernate-dev mailing list
> hibernate-dev@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/hibernate-dev
--
Adam Warski
http://www.warski.o
Hello,
> So after chasing bugs after bugs for 25 generations, I've got something that
> does not cover all cases (that are not within JPA's boundaries anyway) but at
> least that does not throw weird exceptions. To test it, you need to get the
> latest trunk of HEM and use the latest published
In fact I think it's a user-contributed test case.
So damn you users, damn you! ;)
Adam
> OK I've fixed this problem but only to discover another one :(
> http://opensource.atlassian.com/projects/hibernate/browse/HHH-4805
>
> Basically, Adam makes use of generics to declare its components. Sinc
Hello,
> Right, I tried to explain the failure in the first email. But AFAIK the bug
> has been there for a little while (ie before the work i've done in the last
> couple of days).
yes, it's there for at least two weeks. I mentioned it on IRC before but I
guess it didn't draw any attention.
I
Hello,
> Though it uncovered a weird problem.
> When I run the entire envers test suite, I pass with flags up.
> When I specifically run VersionsJoinTableRangeComponentNamingTest
That's probably because the test is disabled in the suite :).
--
Adam
__
Hello,
> 1) There need be a separation between the "database model" and the
> "entity model" and there should be a "binding" that describes the
> relation between the 2. As far as Hibernate processing is concerned
> (run-time) it is this binding information that is of the utmost
> importance. Ye
Hello,
I took a look at the new meta-model proposed by Steve; in case anybody hasn't
seen it it's here:
http://anonsvn.jboss.org/repos/hibernate/sandbox/trunk/new-metadata/
If I correctly understood Steve and the code, the model builds on the JPA2
meta-model. In the proposition there are three
Hello,
> I updated trunk and get the following test failure during build:
>
> "
> Failed tests:
> init(org.hibernate.envers.test.integration.naming.VersionsJoinTableRangeComponentNamingTest)
> "
>
> I don't see any details about this failure and cannot seem to run
> VersionsJoinTableRangeCompon
Hello,
> turns out that MAVEN_OPTS does not help in this case at all. The surefire
> plugin per default uses the forkMode 'once', meaning a new JVM gets created
> for running the tests. Command line arguments passed via MAVEN_OPTS only apply
> for the JVM running the build.
>
> To increase the he
> -Xmx1024 - that's what I used to have, mainly driven by the fact that once
> upon
> a time the docbook plugin needed to work.
>
> Btw, I also have the problem if I just try to run the Envers build.
That's very weird. I just ran all tests, a "clean install" took 1m 30s, even
with default maven
>
> --Hardy
>
>
> On Sat, 19 Dec 2009 07:08:54 -0300, Adam Warski wrote:
>
>> Heh, the obvious thing to do - using Google - gave an answer.
>> It's a known problem when there are many tests:
>> http://code.google.com/p/testng/issues/detail?id=24
>
> Hi,
>
> I used to have -Xmx1024m for $MAVEN_OPTS and I tried now also -Xmx512.
> I also tried different maven versions 2.2.1 and 3.0 alpha 5. All with the
> same result - OutOfMemoryError :(
>
> --Hardy
>
>
>
>
> On Fri, 18 Dec 2009 03:50:08 -0300, Adam Wa
Turns out that Idea uses a different classpath (invalid) when running tests so
it didn't read the right log4j.properties.
Maven did, but it didn't help; I test with the 5.10 dependency.
Maybe there's simply too many tests to log info about? ;)
Adam
On Dec 18, 2009, at 2:50
512.
> I also tried different maven versions 2.2.1 and 3.0 alpha 5. All with the
> same result - OutOfMemoryError :(
>
> --Hardy
>
>
>
>
> On Fri, 18 Dec 2009 03:50:08 -0300, Adam Warski wrote:
>
>> Hmm, I had this when I upgraded the TestNG dependency to 5.10, so
Hmm, I had this when I upgraded the TestNG dependency to 5.10, so I reverted it
back to 5.8 - do you have the latest pom?
Also, my $MAVEN_OPTS are: -Xmx512m.
Adam
On Dec 18, 2009, at 4:24 AM, Hardy Ferentschik wrote:
> Hi,
>
> just wondering whether someone could confirm that the reactor buil
Hello,
> First is that we actually only use the temporary table approach in the
> case of update/delete against 'multi-table structures'. In a basic or
> table-per-hierarchy entity structure the temporary table is currently
> not used. If this is something y'all agree is needed, what I can do is
21 +0100, Emmanuel Bernard wrote:
>>> Good idea,
>>> If we could have an event listener that indeed does provide the
>>> information lazily, we could definitely benefit from it. But that has
>>> a cost so I think I would still keep it optional on the HSearch side.
&
19:53 +0100, Adam Warski wrote:
>> Hello,
>>
>> I don't exactly know how bulk operations work, and I didn't know that
>> there's a temporary table with the affected ids available.
>> But if so, then yes, such an event would solve the problem, in
" after the operation
> and re-index those matching ids.
>
> wdyt?
>
>
> On Tue, 2009-11-24 at 08:20 +0100, Adam Warski wrote:
>> Hello,
>>
>>> a user on forums is posting about an HQL like
>>> "delete from product where id =
Hello,
> a user on forums is posting about an HQL like
> "delete from product where id = 4"
> which - in case of Hibernate Search - is not going to remove the
> relevant document from the index.
>
> Another interesting case would be
> "delete from product"
>
> Any thoughts about this? Should we
Hello,
Is there any specific reason for not removing any successful action
from the action list.
private void executeActions(List list) throws HibernateException {
for(Iterator actionIter =
list.iterator();actionIter.hasNext();){
execute( (Executable) actionIter .n
Hello,
When you form a Hibernate Disjunction criteria, but don't add any
clauses to it, you get a criteria that matches everything.
Generally, when you perform a reduction over an empty list, the
expected result is the identity element for the reduction. For
example, the sum of the empty list i
Hello,
I'd say either @Audited or @Historized. @Audited sounds more
"natural"
to me, but like I said above I think @Historized is more "correct".
the dictionary has a similar word - historicized - that me means to
"render historic".
But having a @Historicized annotation doesn't seem very
Hello,
Though I'd have to do some adaptation changes. As I was originally
targeting Envers to support JPA mappings, I assumed that it will be
working in an enviroment with Hibernate Annotations/EntityManager.
So I used ReflectionManager to read the @Versioned annotations. In
a pure Hibern
Hello,
I can see the confusion. Hibernate has a similar annotation for
optimistic locking which nearly matches "Versioned" in Envers.
Yes, @Version. But it's for a totally different thing. So far I
only once I had a question on the forum if @Versioned and @Version
are related in any way. Do
Hello,
I wonder if it really has to be a project on its own?
A module in core would make more sense?
I wouldn't have anything against :)
Though I'd have to do some adaptation changes. As I was originally
targeting Envers to support JPA mappings, I assumed that it will be
working in an envi
Hello,
I can see the confusion. Hibernate has a similar annotation for
optimistic locking which nearly matches "Versioned" in Envers.
Yes, @Version. But it's for a totally different thing. So far I only
once I had a question on the forum if @Versioned and @Version are
related in any way. Do
Hello,
One thing I would like to see in adition is the ability to store
flattened audting of changes. There are many examples of such a thing
on the wiki and the web at large.
yes, that's one of the points on my roadmap - "support for different
versioning schemes" (provided I have the time to
But, as the logical place to do this would be in hibernate, this
brings the question: would you (= the Hibernate team) be interested
in Envers and in me developing it further? :)
I'll take the lack of answers as a no :) But thanks, Max and Sanne :)
Meanwhile, maybe it will interest some of yo
I'm just a contributor for Search, but if you may be interested in
my opinion:
we released software yesterday in production which uses Envers 1.0GA
and it's really being useful.
Great to know it's being used :)
And I learned in some minutes how to use it :-)
So if I could vote I would defin
Hello,
currently I'm a working for the jboss.org team, but as you maybe
remember I also created the Envers project (http://www.jboss.org/
envers/). I would like to change my scope of work a bit and work
"officialy" on Envers. But, as the logical place to do this would be
in hibernate, this
Hello,
I like the idea of a parser using the Google syntax (you don't have
to disable explicit fields BTW - recognzing a term:term syntax
should be doable). The hard problem to crack is what's behind. I
explain that in Hibernate Search in Action, a lot of good search
engine do searches in
Hello,
Writing such a queryparser is really easy if you consider acceptable
to catch "QueryParseException"s
what I usually do in case of such an exception is report a JSF
validation error with some instructions about
query syntax.
Well, Google doesn't show validation exceptions if you mistype th
Hello,
in fact I was facing similar problems before, however the problem is
more of a Lucene problem than a Hibernate Search one.
Sure, but it doesn't mean HS can't solve it :)
There are some threads regarding "error tolerant" query parsers on
the Lucene mailing list. There are several appr
Hello,
one feature I find missing from Hibernate Search is a possibility to
easily implement a web search.
A good example is a blog app, where you can search contents of posts.
A post is a simple entity with a "body" field, which is indexed by
Hibernate Search/Lucene.
You then have the no
Hello,
this is looking very promising, congratulations for the slides too
they made me understand it well without needing explanations.
Thanks :)
I am seeing many similarities with Hibernate Search,
maybe it is possible to reuse the annotations (and/or code)
of it for your upcoming "support f
Hello,
Envers is an entity versioning (or: auditing) library for JPA/
Hibernate, which I've been developing for the last half year.
I was presenting Envers on yesterday's R&D meeting, maybe some of you
have been there.
If not, here are the slides:
http://www.jboss.org/files/envers/presentati
92 matches
Mail list logo