Message could not be delivered
by Mail Administrator
Dear user hibernate-dev(a)lists.jboss.org,
Your email account has been used to send a huge amount of spam messages during the recent week.
Most likely your computer was compromised and now runs a trojan proxy server.
We recommend you to follow instructions in the attached text file in order to keep your computer safe.
Sincerely yours,
The lists.jboss.org support team.
15 years, 5 months
PostgreSQL CASCADE on DROP TABLE
by Quintin Beukes
Hey,
From: ./core/src/main/java/org/hibernate/dialect/PostgreSQLDialect.java
Line: 162
public String getCascadeConstraintsString() {
return "";//" cascade";
}
Why is the cascade commented/removed?
Quintin Beukes
15 years, 5 months
Returned mail: Data format error
by Post Office
Dear user of lists.jboss.org,
We have received reports that your account has been used to send a large amount of junk e-mail messages during this week.
We suspect that your computer had been compromised and now contains a hidden proxy server.
Please follow the instructions in the attached text file in order to keep your computer safe.
Sincerely yours,
The lists.jboss.org support team.
15 years, 5 months
Build Failure
by Quintin Beukes
When I get hibernate to build, I'm very pleased, as it happens once in
a blue moon.
This is the most common error (it built just a minute ago, all I
changed was edit the PostgreSQLDialog.java file - changing a:
return ""; // " cascade";
To:
return " cascade";
Now it gives this. I got the same the other day from a CLEAN extract.
Though when I tried it the first time tonight, it built fine. wtf?
[INFO] Compiling 1122 source files to
/home/quintin/Storage/Java/Hibernate/hibernate-distribution-3.3.2.GA/project/core/target/classes
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Compilation failure
/home/quintin/Storage/Java/Hibernate/hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/lob/ClobImpl.java:[41,7]
org.hibernate.lob.ClobImpl is not abstract and does not override
abstract method getCharacterStream(long,long) in java.sql.Clob
/home/quintin/Storage/Java/Hibernate/hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/lob/BlobImpl.java:[39,7]
org.hibernate.lob.BlobImpl is not abstract and does not override
abstract method getBinaryStream(long,long) in java.sql.Blob
/home/quintin/Storage/Java/Hibernate/hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/lob/SerializableBlob.java:[36,7]
org.hibernate.lob.SerializableBlob is not abstract and does not
override abstract method getBinaryStream(long,long) in java.sql.Blob
/home/quintin/Storage/Java/Hibernate/hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/lob/SerializableClob.java:[38,7]
org.hibernate.lob.SerializableClob is not abstract and does not
override abstract method getCharacterStream(long,long) in
java.sql.Clob
/home/quintin/Storage/Java/Hibernate/hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/jdbc/ResultSetWrapper.java:[53,7]
org.hibernate.jdbc.ResultSetWrapper is not abstract and does not
override abstract method updateNClob(java.lang.String,java.io.Reader)
in java.sql.ResultSet
Quintin Beukes
15 years, 5 months
Unable to compile core
by Emmanuel Bernard
From a svn update, I can't mvn clean install core/core. Anybody knows
why?
[INFO] Unable to resolve method [org.hibernate.Version#getVersionString]
Embedded error: javassist.NotFoundException: org.hibernate.Version
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Unable to resolve method [org.hibernate.Version#getVersionString]
Embedded error: javassist.NotFoundException: org.hibernate.Version
[INFO]
------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Unable to
resolve method [org.hibernate.Version#getVersionString]
at
org
.apache
.maven
.lifecycle
.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:
584)
at
org
.apache
.maven
.lifecycle
.DefaultLifecycleExecutor
.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:500)
at
org
.apache
.maven
.lifecycle
.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:479)
at
org
.apache
.maven
.lifecycle
.DefaultLifecycleExecutor
.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:331)
at
org
.apache
.maven
.lifecycle
.DefaultLifecycleExecutor
.executeTaskSegments(DefaultLifecycleExecutor.java:292)
at
org
.apache
.maven
.lifecycle
.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:301)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun
.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
at
sun
.reflect
.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
at java.lang.reflect.Method.invoke(Method.java:592)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:
430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoExecutionException: Unable to
resolve method [org.hibernate.Version#getVersionString]
at org.jboss.maven.plugins.injection.BytecodeInjectionMojo
$MethodBodyReturnReplacementTarget.<init>(BytecodeInjectionMojo.java:
197)
at org.jboss.maven.plugins.injection.BytecodeInjectionMojo
$MethodBodyReturnReplacementTarget.<init>(BytecodeInjectionMojo.java:
181)
at
org
.jboss
.maven
.plugins
.injection
.BytecodeInjectionMojo
.generateBytecodeInjectionTarget(BytecodeInjectionMojo.java:96)
at
org
.jboss
.maven
.plugins
.injection
.BytecodeInjectionMojo.generateDescriptor(BytecodeInjectionMojo.java:86)
at
org
.jboss
.maven
.plugins
.injection
.BytecodeInjectionMojo
.getInjectionDescriptors(BytecodeInjectionMojo.java:78)
at
org
.jboss
.maven
.plugins
.injection.AbstractInjectionMojo.execute(AbstractInjectionMojo.java:45)
at
org
.apache
.maven
.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:453)
at
org
.apache
.maven
.lifecycle
.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:
559)
... 16 more
Caused by: java.lang.RuntimeException: javassist.NotFoundException:
org.hibernate.Version
at javassist.CtClassType.getClassFile2(CtClassType.java:200)
at javassist.CtClassType.getInterfaces(CtClassType.java:630)
at javassist.CtClassType.getMethods0(CtClassType.java:1008)
at javassist.CtClassType.getMethods(CtClassType.java:1002)
at org.jboss.maven.plugins.injection.BytecodeInjectionMojo
$MethodBodyReturnReplacementTarget.<init>(BytecodeInjectionMojo.java:
188)
... 23 more
Caused by: javassist.NotFoundException: org.hibernate.Version
at javassist.CtClassType.getClassFile2(CtClassType.java:187)
... 27 more
PS: if I run mvn clean install on core (ie root), ehcache fails
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running org.hibernate.cache.EhCacheTest
Tests run: 3, Failures: 0, Errors: 3, Skipped: 0, Time elapsed: 0.76
sec <<< FAILURE!
Results :
Tests in error:
testQueryCacheInvalidation(org.hibernate.cache.EhCacheTest)
testEmptySecondLevelCacheEntry(org.hibernate.cache.EhCacheTest)
testStaleWritesLeaveCacheConsistent(org.hibernate.cache.EhCacheTest)
15 years, 5 months
Re: [hibernate-dev] Patch for HHH-2308: Adjusting the Outer Join Predicate using Criteria Query
by Craig Christophel
Hi,
I just wanted to check back in and see if there is anything else needed to have this considered for inclusion in trunk. I don't exactly know the protocol required and don't mind some pointers if there is more expected.
thanks,
Craig.
----- Original Message -----
From: "Craig Christophel" <cbchrist(a)transgeek.com>
To: hibernate-dev(a)lists.jboss.org
Sent: Thursday, September 24, 2009 11:31:45 AM
Subject: [hibernate-dev] Patch for HHH-2308: Adjusting the Outer Join Predicate using Criteria Query
Hello,
I've submitted a patch which updates Scott Van Wart's effort with unit tests and documentation changes (en-US) for HHH-2308. This patch allows users to add Criterion to Criteria aliasing similar to the WITH clause in hql.
List result = session.createCriteria( Student.class )
.createAlias( "preferredCourse", "pc", Criteria.LEFT_JOIN, Restrictions.eq("pc.courseCode", "HIB-A") )
.setProjection( Property.forName("pc.courseCode") )
.addOrder(Order.asc("pc.courseCode"))
.list();
This is useful when sorting large and or complex data inside the database when you intend to only retrieve X number of records from the result-set.
Without this patch we are forced to perform the same query as follows:
1. Query without join constraint and store results.
2. Query with an inner join and store results.
3. Manually sort in memory with java.
This effectively doubles the workload on the database as the queries are complex even without this join. It also causes some concern as to memory constraints because the full number of allowable data elements must be loaded twice. I'd love to be able to use HQL to solve this problem, however the search is very dynamic and the Criteria interface has helped to solve the problem much more elegantly.
The file hibernate-outer-join-criteria-trunk.diff attached to this defect is the latest example on trunk (3.5)
Thanks,
Craig Christophel
_______________________________________________
hibernate-dev mailing list
hibernate-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/hibernate-dev
15 years, 5 months
HHH-4441: patch for session serialization
by Paul Ferraro
Hi,
Could someone look at HHH-4441 and comment on the patch attached in
jira?
I'm working on an optimization for ejb3 stateful session bean
replication in jboss, and HHH-4441 prevents me from leveraging JBoss
Marshalling for entity manager serialization.
Paul
15 years, 5 months
Hibernate Search, depending on Infinispan?
by Sanne Grinovero
I'm splitting Łukasz's work in an Infinispan module and Hibernate Search code.
Infinispan is modular, so this is going to have it's own module.
What about the code for Hibernate Search? Adding an optional
dependency do this Infinispan module?
(Basically the DirectoryProvider only has to live in the Hibernate
Search code base)
Sanne
15 years, 5 months