JPA2 locking followup...
by Scott Marlow
For JPA2 support, I propose that Hibernate LockMode support the
following equivalents of JPA2 LockModeType locks:
LockMode.OPTIMISTIC (READ)
LockMode.OPTIMISTIC_FORCE_INCREMENT (WRITE)
LockMode.PESSIMISTIC_READ
LockMode.PESSIMISTIC_WRITE
LockMode.PESSIMISTIC_FORCE_INCREMENT
Hibernate already supports NONE, so that doesn't need to be added. JPA2
defaults to LockModeType NONE.
JPA1 READ + WRITE will be supported respectively via LockMode.OPTIMISTIC
+ LockMode.OPTIMISTIC_FORCE_INCREMENT.
With this change, Hibernate (native (better term?)) applications would
be able to request JPA2 like locks. This also means that JPA2
applications running with the Hibernate Entity Manager, will see similar
locking behavior as native applications.
Pros:
- Application developers will have a consistent set of locking options
in their JPA2 based applications and native Hibernate applications.
- This helps the application developer to prepare their native Hibernate
application to migrate to JPA2.
Cons:
- This ties Hibernate core locking internals to the JPA2 specification.
As JPA continues to evolve, Hibernate core should follow in lockstep.
Although, that is not a hard requirement.
- An alternative would be introducing low level locking primitives that
could be combined to support JPA2 style locks. I can explore this path
if there is strong push back to the above proposal.
Comments?
Scott
15 years, 2 months
Hibernate 3.5.0-Beta-2 dependencies
by Tomasz Blachowicz
Hi,
I've just upgrade Hibernate Annotations to Beta2 version (using Maven 2) in
one of my sandbox projects and noticed that there are new dependencies to
3rd party libraries. Can you please quickly explain why there are the
following ones:
* javax.xml.bind:jaxb-api:jar:2.1:compile - only for Java 1.5, but still
don't know why Hibernate needs JAXB
* com.sun.xml.bind:jaxb-impl:jar:2.1.3:compile
* hsqldb:hsqldb:jar:1.8.0.2:compile - shouldn't that be at scope test?
Kind Regards,
Tomasz
15 years, 2 months
Re: [hibernate-dev] Hibernate 3.5.0-Beta-2 dependencies
by Tomasz Blachowicz
---------- Forwarded message ----------
From: Tomasz Blachowicz <tblachowicz(a)gmail.com>
Date: Tue, Nov 10, 2009 at 4:37 PM
Subject: Re: [hibernate-dev] Hibernate 3.5.0-Beta-2 dependencies
To: Steve Ebersole <steve(a)hibernate.org>
Sure, here it goes:
$ mvn dependency:tree
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'dependency'.
[INFO]
------------------------------------------------------------------------
[INFO] Building Sandbox: JPA2
[INFO] task-segment: [dependency:tree]
[INFO]
------------------------------------------------------------------------
[INFO] [dependency:tree]
[INFO] sandbox:jpa2:jar:1.0-SNAPSHOT
[INFO] \- org.hibernate:hibernate-annotations:jar:3.5.0-Beta-2:compile
[INFO] +- org.hibernate:hibernate-core:jar:3.5.0-Beta-2:compile
[INFO] | +- antlr:antlr:jar:2.7.6:compile
[INFO] | +- commons-collections:commons-collections:jar:3.1:compile
[INFO] | +- dom4j:dom4j:jar:1.6.1:compile
[INFO] | | \- xml-apis:xml-apis:jar:1.0.b2:compile
[INFO] | \- javax.transaction:jta:jar:1.1:compile
[INFO] +-
org.hibernate:hibernate-commons-annotations:jar:3.2.0.Beta1:compile
[INFO] +- org.hibernate.java-persistence:jpa-api:jar:2.0-cr-1:compile
[INFO] +- javax.xml.bind:jaxb-api:jar:2.1:compile
[INFO] | +- javax.xml.stream:stax-api:jar:1.0-2:compile
[INFO] | \- javax.activation:activation:jar:1.1:compile
[INFO] +- com.sun.xml.bind:jaxb-impl:jar:2.1.3:compile
[INFO] +- org.slf4j:slf4j-api:jar:1.5.8:compile
[INFO] \- hsqldb:hsqldb:jar:1.8.0.2:compile
[INFO]
------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 5 seconds
[INFO] Finished at: Tue Nov 10 16:35:18 GMT 2009
[INFO] Final Memory: 10M/19M
[INFO]
------------------------------------------------------------------------
There is only one dependency in my sample project and this is Hibernate
Annotations.
On Tue, Nov 10, 2009 at 4:31 PM, Steve Ebersole <steve(a)hibernate.org> wrote:
> On Tue, 2009-11-10 at 16:03 +0000, Tomasz Blachowicz wrote:
> > Hi,
> >
> > I've just upgrade Hibernate Annotations to Beta2 version (using Maven 2)
> in
> > one of my sandbox projects and noticed that there are new dependencies to
> > 3rd party libraries. Can you please quickly explain why there are the
> > following ones:
> > * javax.xml.bind:jaxb-api:jar:2.1:compile - only for Java 1.5, but still
> > don't know why Hibernate needs JAXB
> > * com.sun.xml.bind:jaxb-impl:jar:2.1.3:compile
> > * hsqldb:hsqldb:jar:1.8.0.2:compile - shouldn't that be at scope test?
> Please show us the output of 'mvn dependency:tree". We need to know
> where these come from.
>
> >
> > Kind Regards,
> > Tomasz
> > _______________________________________________
> > hibernate-dev mailing list
> > hibernate-dev(a)lists.jboss.org
> > https://lists.jboss.org/mailman/listinfo/hibernate-dev
> --
> Steve Ebersole <steve(a)hibernate.org>
> Hibernate.org
>
>
15 years, 2 months
schedules for Hibernate Search?
by Sanne Grinovero
Hi Emmanuel,
had a chat with Navin today, he was pinging me about HSEARCH-397. He
is needing that for the Infinispan release.
This issue was planned for Search 3.3 which is quite far away.. I've
just changed that to 3.2.0 but even so are you thinking in releasing
that before the end of this year (the Infinispan release timeframe) ?
Maybe we could start planning a beta release and define which issues
have priority?
I've seen there are 30 issues open, some are trivial and some are
nearly done, like dynamic boosting is only missing documentation.
I'd suggest postponing the hard stuff like
HSEARCH-361 Only index an entity if an indexed property has changed
HSEARCH-275 support new NIOFSDirectory, a multithreaded optimized FSDirectory
HSEARCH-364 Make Hibernate Search fully mockable
unless you have concrete ideas about how to implement them.
Other comments:
HSEARCH-246 Run optimize at the end of the transaction even if
flushToIndexes() is used
I don't need this one anymore as MassIndexer has it's own concept of
queues. IMHO a Beta is needed so that somebody tries the MassIndexer
BTW ;-)
HSEARCH-392 JGroups based backend
Is Łukasz willing to write a documentation patch?
HSEARCH-370 Monitoring of batch indexer state and progress
I'm in need of some directions on this one from someone having tried
to use it; the prototype API was committed as part of HSEARCH-218
Mutual dependency: so Infinispan is needing a Search release, and
Search an Infinispan release? It's about a submodule from the one
depending on the core of the other, still we should release at least a
beta to make a deployment possible, or have Infinispan release
submodules later than core?
Sanne
15 years, 2 months
core/* commit freeze
by Emmanuel Bernard
Steve is releasing 3.5 Beta2
Unless you get Steve to agree, do not commit on core/* projects in
trunk.
You can reach steve on freenode #hibernate-dev
15 years, 2 months
HSearch release
by Hardy Ferentschik
Hi,
I was just wondering whether we have reached a decision yet for the 3.2.0
release of HSearch?
Some of the issues scheduled for this release and assigned to me do not
seem to be that important.
I will go through them in Jira.
I will also try to finish the DynamicBoost documentation over the weekend.
It will be another small
step towards the next release of HSearch :)
--Hardy
15 years, 2 months