Re: [hibernate-dev] HHH-3555

2015-09-15 Thread Adam Warski
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 >

Re: [hibernate-dev] Envers ReflectionTools

2015-06-03 Thread Adam Warski
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

Re: [hibernate-dev] Envers: Mapped-superclasses extended by embeddabables

2014-05-20 Thread Adam Warski
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

Re: [hibernate-dev] Envers tests

2012-03-27 Thread Adam Warski
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

Re: [hibernate-dev] [Hibernate-JIRA] Created: (HHH-7187) envers tests fail on other DBs except the default H2

2012-03-22 Thread Adam Warski
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

Re: [hibernate-dev] Sessions sharing Connections

2012-03-16 Thread Adam Warski
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

Re: [hibernate-dev] Temporary session and commit issue with manual flush mode

2012-02-14 Thread Adam Warski
//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

Re: [hibernate-dev] Temporary session and commit issue with manual flush mode

2012-02-14 Thread Adam Warski
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

Re: [hibernate-dev] Backports for 3.6.10

2012-01-24 Thread Adam Warski
> 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/#!

Re: [hibernate-dev] Integrators on Tomcat

2011-10-03 Thread Adam Warski
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

[hibernate-dev] Integrators on Tomcat

2011-10-03 Thread Adam Warski
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

Re: [hibernate-dev] classloading issue when trying to add envers to as7

2011-08-19 Thread Adam Warski
--- >>> 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

Re: [hibernate-dev] classloading issue when trying to add envers to as7

2011-08-03 Thread Adam Warski
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

Re: [hibernate-dev] classloading issue when trying to add envers to as7

2011-08-02 Thread Adam Warski
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

Re: [hibernate-dev] classloading issue when trying to add envers to as7

2011-08-02 Thread Adam Warski
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

Re: [hibernate-dev] Patch for HHH-6361 / HHH-6349 : Envers loses audit information due to a Hibernate core bug

2011-08-02 Thread Adam Warski
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

Re: [hibernate-dev] Patch for HHH-6361 / HHH-6349 : Envers loses audit information due to a Hibernate core bug

2011-07-08 Thread Adam Warski
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

Re: [hibernate-dev] classloading issue when trying to add envers to as7

2011-06-20 Thread Adam Warski
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

[hibernate-dev] Improving AuditProcessManager

2011-06-17 Thread Adam Warski
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

Re: [hibernate-dev] classloading issue when trying to add envers to as7

2011-06-17 Thread Adam Warski
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

Re: [hibernate-dev] evners compile error in branch 36

2011-06-03 Thread Adam Warski
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

Re: [hibernate-dev] compile error of envers on 3.6 branch

2011-05-24 Thread Adam Warski
> 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

Re: [hibernate-dev] Integrator and retrieving objects

2011-04-27 Thread Adam Warski
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. >>>> >>

Re: [hibernate-dev] Integrator and retrieving objects

2011-04-25 Thread Adam Warski
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

Re: [hibernate-dev] Integrator and retrieving objects

2011-04-06 Thread Adam Warski
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

Re: [hibernate-dev] Integrator and retrieving objects

2011-04-06 Thread Adam Warski
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

Re: [hibernate-dev] Integrator and retrieving objects

2011-04-06 Thread Adam Warski
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

Re: [hibernate-dev] callback induced actions

2011-04-01 Thread Adam Warski
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

Re: [hibernate-dev] Integrator locator

2011-03-31 Thread Adam Warski
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

Re: [hibernate-dev] Integrator locator

2011-03-31 Thread Adam Warski
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

Re: [hibernate-dev] Integrator locator

2011-03-30 Thread Adam Warski
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

Re: [hibernate-dev] Integrator locator

2011-03-30 Thread Adam Warski
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

Re: [hibernate-dev] Integrator locator

2011-03-30 Thread Adam Warski
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

Re: [hibernate-dev] multi-tenancy and ConnectionProvider

2011-03-23 Thread Adam Warski
> 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 _

Re: [hibernate-dev] nested ServiceRegistry ?

2011-03-23 Thread Adam Warski
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-

Re: [hibernate-dev] HHH-5562, services and eventlisteners

2011-02-08 Thread Adam Warski
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

Re: [hibernate-dev] Applying commits from 3.6 to master

2010-11-05 Thread Adam Warski
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

Re: [hibernate-dev] Applying commits from 3.6 to master

2010-10-29 Thread Adam Warski
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

[hibernate-dev] Applying commits from 3.6 to master

2010-10-29 Thread Adam Warski
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

Re: [hibernate-dev] Hibernate 4 and the hibernate3.jar file in release bundle

2010-10-10 Thread Adam Warski
(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

Re: [hibernate-dev] Envers set up

2010-09-19 Thread Adam Warski
;> >>> >>> ___ >>> hibernate-dev mailing list >>> hibernate-dev@lists.jboss.org >>> https://lists.jboss.org/mailman/listinfo/hibernate-dev >> > >

Re: [hibernate-dev] Envers set up

2010-09-11 Thread Adam Warski
_ > 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

Re: [hibernate-dev] entity modes

2010-09-10 Thread Adam Warski
; 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

Re: [hibernate-dev] entity modes

2010-09-10 Thread Adam Warski
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.

Re: [hibernate-dev] Exceptions thrown in a tx synchronization are eaten

2010-07-11 Thread Adam Warski
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: &

Re: [hibernate-dev] Exceptions thrown in a tx synchronization are eaten

2010-07-10 Thread Adam Warski
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

Re: [hibernate-dev] The mail hudson job for Core fails

2010-06-09 Thread Adam Warski
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

Re: [hibernate-dev] Hibernate Core (trunk and branch35) hudson jobs

2010-05-06 Thread Adam Warski
> 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

Re: [hibernate-dev] Hibernate Core (trunk and branch35) hudson jobs

2010-05-05 Thread Adam Warski
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

Re: [hibernate-dev] Hibernate Core (trunk and branch35) hudson jobs

2010-05-05 Thread Adam Warski
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

Re: [hibernate-dev] Hibernate Core (trunk and branch35) hudson jobs

2010-05-04 Thread Adam 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

Re: [hibernate-dev] Exceptions thrown in a tx synchronization are eaten

2010-03-31 Thread Adam Warski
((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

Re: [hibernate-dev] Exceptions thrown in a tx synchronization are eaten

2010-03-29 Thread Adam Warski
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

Re: [hibernate-dev] Exceptions thrown in a tx synchronization are eaten

2010-03-25 Thread Adam Warski
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

[hibernate-dev] Exceptions thrown in a tx synchronization are eaten

2010-03-24 Thread Adam Warski
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@

Re: [hibernate-dev] website migration

2010-03-18 Thread Adam Warski
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

Re: [hibernate-dev] Weird backref issue within the AttributeFactory (Was Re: Some code questions)

2010-01-16 Thread Adam Warski
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

Re: [hibernate-dev] Weird backref issue within the AttributeFactory (Was Re: Some code questions)

2010-01-15 Thread Adam Warski
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

Re: [hibernate-dev] Weird backref issue within the AttributeFactory (Was Re: Some code questions)

2010-01-14 Thread Adam Warski
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

Re: [hibernate-dev] Weird backref issue within the AttributeFactory (Was Re: Some code questions)

2010-01-14 Thread Adam Warski
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 __

Re: [hibernate-dev] Hibernate as a persistence engine

2010-01-05 Thread Adam Warski
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

[hibernate-dev] Hibernate as a persistence engine

2009-12-23 Thread Adam Warski
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

Re: [hibernate-dev] trunk test failure...

2009-12-23 Thread Adam Warski
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

Re: [hibernate-dev] Problems building Core

2009-12-21 Thread Adam Warski
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

Re: [hibernate-dev] Problems building Core

2009-12-21 Thread Adam Warski
> -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

Re: [hibernate-dev] Problems building Core

2009-12-21 Thread Adam Warski
> > --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 >

Re: [hibernate-dev] Problems building Core

2009-12-19 Thread Adam Warski
> 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

Re: [hibernate-dev] Problems building Core

2009-12-18 Thread Adam Warski
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

Re: [hibernate-dev] Problems building Core

2009-12-18 Thread Adam Warski
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

Re: [hibernate-dev] Problems building Core

2009-12-17 Thread Adam Warski
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

Re: [hibernate-dev] firing proper events after HQL?

2009-11-30 Thread Adam Warski
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

Re: [hibernate-dev] firing proper events after HQL?

2009-11-25 Thread Adam Warski
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. &

Re: [hibernate-dev] firing proper events after HQL?

2009-11-25 Thread Adam Warski
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

Re: [hibernate-dev] firing proper events after HQL?

2009-11-24 Thread Adam Warski
" 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 =

Re: [hibernate-dev] firing proper events after HQL?

2009-11-23 Thread Adam Warski
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

Re: [hibernate-dev] Is there any specific reason for not removing any successful action from the action list in ActionQueue executeActions

2009-03-31 Thread Adam Warski
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

Re: [hibernate-dev] Hibernate Disjunction Criteria broken: returns true for empty list of criteria

2008-10-30 Thread Adam Warski
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

Re: [hibernate-dev] Envers in Hibernate

2008-10-24 Thread Adam Warski
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

Re: [hibernate-dev] Envers in Hibernate

2008-10-23 Thread Adam Warski
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

Re: [hibernate-dev] Envers in Hibernate

2008-10-23 Thread Adam Warski
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

Re: [hibernate-dev] Envers in Hibernate

2008-10-23 Thread Adam Warski
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

Re: [hibernate-dev] Envers in Hibernate

2008-10-23 Thread Adam Warski
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

Re: [hibernate-dev] Envers in Hibernate

2008-10-22 Thread Adam Warski
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

Re: [hibernate-dev] Envers in Hibernate

2008-10-21 Thread Adam Warski
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

Re: [hibernate-dev] Envers in Hibernate

2008-10-20 Thread Adam Warski
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

[hibernate-dev] Envers in Hibernate

2008-10-10 Thread Adam Warski
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

Re: [hibernate-dev] Hibernate web search

2008-09-23 Thread Adam Warski
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

Re: [hibernate-dev] Hibernate web search

2008-09-23 Thread Adam Warski
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

Re: [hibernate-dev] Hibernate web search

2008-09-22 Thread Adam Warski
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

[hibernate-dev] Hibernate web search

2008-09-21 Thread Adam Warski
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

Re: [hibernate-dev] Envers

2008-09-11 Thread Adam Warski
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

[hibernate-dev] Envers

2008-09-10 Thread Adam Warski
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