Re: [hibernate-dev] Hibernate and Eclipse

2011-10-06 Thread Christian Bauer
While you guys are at it, I think you should add the Maven or rather non-Eclipse tools for Hibernate to your TODO list. All of that needs cleanup and unification. On Oct 6, 2011, at 19:05 , Strong Liu wrote: > I'm in the middle of moving hibernate tools to use hibernate4 > but there are too man

Re: [hibernate-dev] on broken usage of logger

2011-11-23 Thread Christian Bauer
On Nov 23, 2011, at 11:34 , Sanne Grinovero wrote: > log.debugf vs log.debug > log.tracef vs log.trace This also seems to be the difference between these messages with JUL: [main] TRACE - 11:27:51,428 - org.hibernate.loader.Loader: org.hibernate.internal.CoreMessageLog

[hibernate-dev] org.hibernate.ejb.test.lob.BlobTest fails on Derby

2011-11-28 Thread Christian Bauer
Debugging a BLOB issue on H2 (different issue than this) led me to try Derby, which fails even earlier. This is the same test as org.hibernate.ejb.test.lob.BlobTest, if someone could run this on Derby, you should see the exception. I've copied the test 1:1 into my environment and had the same e

[hibernate-dev] @NotNull on @Embeddable's property doesn't affect DDL

2011-12-03 Thread Christian Bauer
See Button.java in the tests. The @NotNull on the embeddables property is checked at runtime but doesn't affect DDL, there's no NOT NULL constraint generated. Is that by design - component nullability etc. - or missing? ___ hibernate-dev mailing list

[hibernate-dev] Hibernate is 10

2011-12-20 Thread Christian Bauer
Not sure everyone noticed: http://sourceforge.net/projects/hibernate/ Registered: 2001-11-25 Congratulations :) ___ hibernate-dev mailing list hibernate-dev@lists.jboss.org https://lists.jboss.org/mailman/listinfo/hibernate-dev

Re: [hibernate-dev] HHH-7018 and one more change to how we serialize EntityManagerFactory instances...

2012-02-08 Thread Christian Bauer
On Feb 7, 2012, at 16:05 , Scott Marlow wrote: > The use case for duplicate EntityManagerFactory, would be the application > that is depending on the persistence unit name that may or may not be > unique across multiple application deployments. Or many integration test environments. Test setups

[hibernate-dev] Wrapping of optimistic exceptions

2012-11-09 Thread Christian Bauer
I've noticed some cases where a native Hibernate exception is not wrapped in a javax.persistence.OptimisticLockException. EntityVerifyVersionProcess.java throws an org.hibernate.OptimisticLockException that is passed on directly to JPA users. EntityIncrementVersionProcess.java passes through th

[hibernate-dev] Discovering/configuring package-info

2013-03-18 Thread Christian Bauer
Trying to upgrade to 4.3-SNAPSHOT, the EntityManagerFactoryBuilderImpl.indexResource() is failing for my persistence.xml configuration in Java SE with Persistence.createEntityManagerFactory(): myDS org.jpwh.model org.jpwh.model.simple.Item org.jpwh.model.simple.U

Re: [hibernate-dev] Discovering/configuring package-info

2013-03-18 Thread Christian Bauer
On 18.03.2013, at 17:09, Steve Ebersole wrote: > Out of curiosity, where is this documented as being supported? http://docs.jboss.org/hibernate/entitymanager/3.6/reference/en/html/configuration.html The class element specifies a fully qualified class name that you will map. By default all pro

Re: [hibernate-dev] Discovering/configuring package-info

2013-03-22 Thread Christian Bauer
Testing the latest scanner changes. Still trying to configure an explicit persistence unit, where only the listed annotated classes (and listed package-info) are included, everything else should be ignored. The PackageInfoArchiveEntryHandler will always add package names to DeploymentResources

[hibernate-dev] New stored procedure support

2013-08-01 Thread Christian Bauer
Some of the issues I've found with JPA 2.1 and the overall new stored procedure APIs: 1. StoredProcedureQuery#hasMoreResults() returns true if the next result is an update count, it should return false, according to API documentation. On MySQL, if a SP returns a single or multiple ResultSets, y

Re: [hibernate-dev] New stored procedure support

2013-08-01 Thread Christian Bauer
On 01.08.2013, at 19:01, Steve Ebersole wrote: >> 2. If there is only one ResultSet returned by the SP, I should be able to >> call StoredProcedureQuery#getResultList() without first calling >> hasMoreResults(). This maps to JDBC CallableStatement#excuteQuery(). > > Like I said, I don't think

Re: [hibernate-dev] Connection proxying

2006-08-30 Thread Christian Bauer
On Aug 30, 2006, at 9:39 PM, Steve Ebersole wrote: The question was simply whether exposing the Work/command APIs justify removal of the connection() method from the perspective of using it for direct JDBC work. I do not know that answer to that. Unfortunately, I suspect it does not and tha

Re: [hibernate-dev] session-per-application in a rich client an antipattern?

2006-09-24 Thread Christian Bauer
On Sep 25, 2006, at 2:01 AM, Tom Hughes wrote: This would be super, super useful and from my research, I'm not the only one having these problems. http://forum.hibernate.org ___ hibernate-dev mailing list hibernate-dev@lists.jboss.org https://lis

Re: [hibernate-dev] session-per-application in a rich client an antipattern?

2006-09-24 Thread Christian Bauer
On Sep 25, 2006, at 2:14 AM, Tom Hughes wrote: Tried that : http://forum.hibernate.org/viewtopic.php?t=965080 no reply. If this is not the correct channel for this follow up apologies and would somebody indicate the correct one please. This is the developer list, so you are wrong here. Stay

[hibernate-dev] Snapshot conflict with merge

2006-09-24 Thread Christian Bauer
I wrote (tested and verified with Gavin): Finally, merging doesn’t allow the following scenario, where two modifications conflict on one snapshot: item.getId() // The database identity is "1234" item.setDescription(...); Session session= sessionFactory.openSession(); Transaction tx = session

Re: [hibernate-dev] Snapshot conflict with merge

2006-09-26 Thread Christian Bauer
On Sep 26, 2006, at 10:20 PM, Emmanuel Bernard wrote: I confirm what I said. I added a testcase to HEM. Here is the most accurate thing I can find from the spec I took it out of the book until this is clear and stable. By the way, another major thing missing in the spec is standardized ver

Re: [hibernate-dev] Snapshot conflict with merge

2006-09-27 Thread Christian Bauer
On Sep 27, 2006, at 12:02 AM, Emmanuel Bernard wrote: you mean a standard version of optimistick-lock="false"? That too. ___ hibernate-dev mailing list hibernate-dev@lists.jboss.org https://lists.jboss.org/mailman/listinfo/hibernate-dev

Re: [hibernate-dev] More fun with merging : non-updatable fields

2006-09-27 Thread Christian Bauer
On Sep 27, 2006, at 6:43 PM, Emmanuel Bernard wrote: This is consistent with the way saveOrUpdate works And it's perfectly reasonable behavior. If I modify a field value, then merge, then take the instance returned by merge, I expect that the value is still there in the merged result. Tha

Re: [hibernate-dev] More fun with merging : non-updatable fields

2006-09-27 Thread Christian Bauer
On Sep 27, 2006, at 8:48 PM, Josh Moore wrote: copies _invalid_ values on top of the clean proxied collection, and sends that back to the user. It does so because you applied these values. Don't do that if you don't want it. Thanks to Hibernate your mistake will not end up in the databas

Re: [hibernate-dev] Filters and many to many

2006-09-28 Thread Christian Bauer
On Sep 28, 2006, at 8:51 PM, Emmanuel Bernard wrote: @Filter (pointing to the target table) @FilterJoinTable (pointing to the association table) I like 2. better, it is more consistent esp when you realize that @OneToMany can use a join table just by changing an annotation. 2. would require

Re: [hibernate-dev] Lightweight bulk reading

2006-10-12 Thread Christian Bauer
On Oct 12, 2006, at 3:56 PM, Paul Williams wrote: I’m trying to read a lot of records in from a table without the need for Hibernate to cache them etc. Basically I’m trying to re- create a search index from the table contents and want to process the table in a very lightweight manner.

Re: [hibernate-dev] [Doc-Bug?] Hibernate Tutorial 1.4 -> SimpleDateFormat not synchronized

2006-10-13 Thread Christian Bauer
On Oct 13, 2006, at 6:07 PM, andresgr wrote: In section 1.4 of hibernate tutorial we can read: "The dateFormatter is a tool we'll need later to convert Date objects from and to strings. It makes sense to only have one formatter as a member of the servlet." But in the javadoc from SimpleDateFo

Re: [hibernate-dev] [Hibernate] Java Object Persistence to file System instead of DB

2006-10-13 Thread Christian Bauer
On Oct 14, 2006, at 7:27 AM, Sindhu, BN wrote: Any help will be very much appreciated. http://forum.hibernate.org The new company Nokia Siemens Networks is expected to start operations by January 1, 2007, subject to customary regulatory approvals, the completion of standard closing condit

[hibernate-dev] Final release Hibernate 3.2.0 GA and Hibernate Java Peristence provider

2006-10-16 Thread Christian Bauer
The Hibernate developer team released Hibernate 3.2.0 GA today, this release is now ready for production use. Please read the migration guidelines if you are upgrading from an earlier version. In addition to Hibernate Core, final releases of the Java Persistence provider are now available w

Re: [hibernate-dev] Session get() and load()

2006-10-31 Thread Christian Bauer
On Oct 31, 2006, at 6:35 PM, Vikas Phonsa wrote: I'm a newbie to hibernate 3 (haven't worked with older versions) and am trying to understand the difference between the get() and the load() methods of the Hibernate Session Object. http://forum.hibernate.org/ __

Fwd: [hibernate-dev] Session get() and load()

2006-10-31 Thread Christian Bauer
Guys, be nice to people who don't read the mailing list page. Alexis is watching. Begin forwarded message: From: "Alexis Pigeon" <[EMAIL PROTECTED]> Date: October 31, 2006 7:01:01 PM GMT+01:00 To: "Christian Bauer" <[EMAIL PROTECTED]> Subject: Re: [hibern

Re: [hibernate-dev] HibernateExt/build.sh / .bat

2006-11-08 Thread Christian Bauer
On Nov 8, 2006, at 4:49 PM, Emmanuel Bernard wrote: Can we get rid of those files, people get confused and they are outdated. Not if the Ant clowns still bundle the plugin JARs in their distribution in the default classpath. ___ hibernate-dev m

Re: [hibernate-dev] Hibernate Tools How to Install Plugin?

2006-11-24 Thread Christian Bauer
On Nov 24, 2006, at 7:43 PM, Arthur Orange wrote: Ok the page http://www.hibernate.org/hib_docs/tools/reference/en/ html/setup.html lists such scant docs on how to install hibernate tools that its worthless really. I went to tools.hibernate.org and that didn't work either. Read up myriad

Re: [hibernate-dev] overriding target through annotations

2006-11-29 Thread Christian Bauer
On Nov 29, 2006, at 9:23 PM, Emmanuel Bernard wrote: Note that I hope the future spec will hopefully handle all cases nicely (ie add a targetElement in @Embedded), @MapKey should go to back the drawing board from a spec POV so we can think of something clean from the begining. I'm for 2.

[hibernate-dev] Connection release modes

2006-12-13 Thread Christian Bauer
Bringing the two lists together for this thread. On Dec 13, 2006, at 12:01 PM, Sergey Koshcheyev wrote: Christian Bauer wrote: Maybe NHibernate only needs two modes. NHibernate probably only need to release either after transaction (also auto-committed) and when the Session is closed. By the

Re: [hibernate-dev] enhancement request - relaxing theta-style joins

2007-02-16 Thread Christian Bauer
On Feb 16, 2007, at 5:56 PM, Joseph Marques wrote: What version of the ejb3 embedded container do you think this feature will make it in to? A future version. ___ hibernate-dev mailing list hibernate-dev@lists.jboss.org https://lists.jboss.org/mail

Re: [hibernate-dev] Could be a bug in aliastobean

2007-02-16 Thread Christian Bauer
On Feb 16, 2007, at 6:29 PM, Horan, Jeff wrote: Then it works. So it is not following Java accessor standards of mixed case method names. FAQ. Go to the forum next time. ___ hibernate-dev mailing list hibernate-dev@lists.jboss.org https://lists.jb

Re: [hibernate-dev] Question regarding DISTINCT

2007-02-19 Thread Christian Bauer
On Feb 19, 2007, at 3:32 PM, Michael Barker wrote: However I have noticed that everytime distinct is specifed in the ejb-ql query it also gets specified in the sql query. I am curious as the reasoning behind this. You are wondering why a DISTINCT you put into your query is actually send

Re: [hibernate-dev] unique-key attribute for many-to-one elements

2007-02-23 Thread Christian Bauer
On Feb 23, 2007, at 2:26 PM, Michael Foltz wrote: Go to http://forum.hibernate.org/ for usage questions. ___ hibernate-dev mailing list hibernate-dev@lists.jboss.org https://lists.jboss.org/mailman/listinfo/hibernate

Re: [hibernate-dev] ECCN for Hibernate

2007-03-08 Thread Christian Bauer
On Mar 8, 2007, at 3:26 PM, Poslednik, Maciej wrote: Please let me know to which of above groups can I assign Hibernate. You have the source, check it. ___ hibernate-dev mailing list hibernate-dev@lists.jboss.org https://lists.jboss.org/mailman/lis

Re: [hibernate-dev] Reading from a view but writing to a table

2007-04-18 Thread Christian Bauer
On Apr 18, 2007, at 9:03 PM, Warren Smith wrote: I'm probably overlooking something simple. Can someone enlighten me? http://forum.hibernate.org/ ___ hibernate-dev mailing list hibernate-dev@lists.jboss.org https://lists.jboss.org/mailman/listinfo

Re: [hibernate-dev] EJB3/Hibernate/JBoss Cache intergration broken in EJB3 trunk

2007-07-03 Thread Christian Bauer
On Jul 2, 2007, at 4:58 PM, Brian Stansberry wrote: FYI, there are a bunch of EJB3 clustered entity test failures in AS trunk due to a bad interaction between Hibernate 3.2.4.SP1 and JBoss Cache 2.0.0. Basically, this is a temporary mismatch between Hibernate and JBC. There's work in Hibe

Re: [hibernate-dev] EJB3/Hibernate/JBoss Cache intergration broken in EJB3 trunk

2007-07-03 Thread Christian Bauer
On Jul 3, 2007, at 11:57 PM, Brian Stansberry wrote: I added a version of the above to http://wiki.jboss.org/wiki/ Wiki.jsp?page=JBossCacheHibernateAlignment. As mentioned there, a bunch of us will be meeting the week of July 23 to deal with these issues. We'll update the wiki after those