[Hibernate] new SPI for EJB3/Seam

2006-09-23 Thread Gavin King
For truly efficient clustering of extended persistence contexts in the
context of Seam or EJB3, we need a way to propagate unflushed
changesets. What we need is an SPI like this:

   Serializable changeset = session1.getChangeSet();

   session2.applyChangeSet(changeset);

where session2 is an empty session, or perhaps even a session with some
of the same entities as session1. The only state that needs to be sent
in the changeset is new entities, unflushed updates to entities and
deletions of entities.

Steve, WDYT?

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


Re: [Hibernate] questions regarding development setup

2006-06-11 Thread Gavin King



Is there some actualproblem we are trying to solve 
here? Because if there is, no-one has pointed it out yet.

The point of the failing tests is to remind and nag us to 
get them fixed. If we hide the failures we remove that 
incentive.

There has been a bunch of handwaving about how this could 
theoretically be a problem for continuous integration ... except that 
weare doing continuous integration and itis not causing 
anyproblems!

It seems there are some people here who have reada 
couple of booksby Kent Beckand think that their job as a software 
developer is to enforce their Holy Perfect Process on everyone. That's perfectly 
fine, but we are practical people running an actual serious software project 
here, and we don't have time for trying to impress people by how aGiLe we 
are.

Thanks for your input, this is the end of 
the thread.


From: 
[EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On Behalf Of Erik 
BertelsenSent: Sunday, June 11, 2006 12:35 PMTo: Max 
AndersenCc: hibernate-devel@lists.sourceforge.netSubject: 
Re: [Hibernate] questions regarding development setup

2006/6/11, Max Rydahl Andersen [EMAIL PROTECTED]:
as 
  i mentioned at the bug we could actually implement this by doing acustom 
  impl of HibernateTestCase.runTest()/max
Hi all,what about a version of runTest() that silently 
accepts test failures for tests that are expected to fail and report them as 
'failures' if they suddenly start to succeed. This will have the intended 
result that a test run is silent if everything works out as expected and if a 
test that is expected to fail suddenly succeeds, it will show up in the test 
report.If the success of the test was intentional because the problem was 
solved, the test should of course be changed to a normal non-failure-expected 
test. If the success was an unintentional consequence of some code change, then 
the developer can investigate whether the problem was really solved or just 
disguised and possibly alter the test. - 
Erik
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


RE: [Hibernate] We need to add a Wiki page full of corrects to POJOs in Action

2006-05-29 Thread Gavin King
Wellyes, the trouble is that Manning is kind of more reputable than some
of the others, especially since they are the publisher of HiA 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Christian Bauer
Sent: Monday, May 29, 2006 2:03 AM
To: development Hibernate
Subject: Re: [Hibernate] We need to add a Wiki page full of corrects to
POJOs in Action


On May 28, 2006, at 9:39 PM, Gavin King wrote:

 Sheesh, the Hibernate chapter in POJOs in Action in riddled with 
 errors. We need to add a page full of corrections to our Wiki.

If we start this, it will never end. I have *count* 10 Hibernate books
on my shelf and I'd could come up with examples of mistakes in
8 of them that are even worse than the ones you found. I don't think we
should provide free editing services for publishers who hired the wrong
tech editors. At least I don't have time to do this...



---
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications
in the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnkkid=107521bid=248729dat=121642
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


---
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnkkid7521bid$8729dat1642
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


[Hibernate] We need to add a Wiki page full of corrects to POJOs in Action

2006-05-28 Thread Gavin King
Sheesh, the Hibernate chapter in POJOs in Action in riddled with
errors. We need to add a page full of corrections to our Wiki.

In a number of places he comments on non-existent Hibernate limitations:
eg. 

* he does not seem to know about lazy=no-proxy
* he claims it is impossible to downcast a Hibernate proxy to a narrower
class (it is not)
* he does not seem to realize that the criteria query API is also a
fetch plan API
* he makes the incorrect statement that lazy=true results in fetching
attributes one at a time instead of fetching all lazy attributes in a
single select
* etc.

He also makes a couple of mistakes in the EJB3 chapter.

We also need to contact Manning to get those problems fixed in case they
do a 2nd printing.


---
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnkkid7521bid$8729dat1642
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


[Hibernate] Fetch profiles

2006-05-28 Thread Gavin King
As you guys know, I've been against the idea of fetch profiles for a
long time (Max always disagreed).

(BTW, please clearly distingush fetch profiles from fetch plans. We
have had fetch plans for years, as a subset of what the Criteria API
can do.)

The basis for my problem was that a fetch profile is really specific to
a particular transaction, but ends up being expressed in the mapping
document, which is a _global_ construct. So, if I try to use this fetch
profile approach, what happens is that I end up with a list of
transactions in every association mapping. Clearly this does not scale
to systems with hundreds of transactions that touch the same data (which
is commonplace). So instead, we tried to guide people down the express
what data you need, upfront, in your query path, which not only avoids
this code scalability problem, but is also by nature more efficient.

What you might also know (but maybe you don't) is that Hibernate has
internally supported fetch profiles for quite a long time (we actually
have a special fetch profile that is used internally for the merge()
operation). We never actually exposed this to users, since in practice
users never seemed to ask for it, and because we in principle do things
that users actually want and ask for, not things that our competitors
marketing departments tell people they want.

It occurred to me today that you could avoid my objection just by
defining the fetch profile in its own section of the XML, instead of in
the association mappings. eg.

  profile name=login
 association name=User.roles fetch=join/
 association name=User.orders fetch=select/
  /profile

Then just call session.setProfile(login), and all criteria queries,
load(), get() and association fetches would obey the profile.

Frankly, I feel silly for not have considered to do it that way before.

The profile could also be a good place to make some other things
settable, eg, TX isolation mode, flushmode, TX timeout, etc.

WDYT? Is it a nice construct?


---
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnkkid7521bid$8729dat1642
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


RE: [Hibernate] Fetch profiles

2006-05-28 Thread Gavin King
Exactly.

-Original Message-
From: Max Andersen 

 And I guess you really want it disjunct from the mapping and not
just  
 where the assocation is already defined ?


---
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnkkid7521bid$8729dat1642
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


RE: [Hibernate] FlushMode.NEVER to MANUAL

2006-05-27 Thread Gavin King
I'm fine with that, but just deprecate the older name. 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Christian Bauer
Sent: Saturday, May 27, 2006 9:05 AM
To: development Hibernate
Subject: [Hibernate] FlushMode.NEVER to MANUAL

Can we rename FlushMode.NEVER to FlushMode.MANUAL in Hibernate 3.2?  
It is not only a better name, but likely the name that we can propose to
the Glassfish team for a common EM flush mode.



---
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications
in the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnkkid=107521bid=248729dat=121642
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


---
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnkkid7521bid$8729dat1642
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


RE: [Hibernate] Hibernate Annotations and Hibernate EntityManager follows JPA/EJB 3.0 final specification

2006-05-16 Thread Gavin King
Yay!
 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Emmanuel Bernard
Sent: Monday, May 15, 2006 11:27 AM
To: Hibernate development
Subject: [Hibernate] Hibernate Annotations and Hibernate EntityManager
follows JPA/EJB 3.0 final specification

Hibernate Annotations and Hibernate EntityManager has now reach the
release candidate level (3.2.0.CR1).
They not only comply with the Java Persistence / EJB 3.0 final
specification, but also fix a bunch of bugs (and add a couple of new
features) making them ready for prime time.

Available for download at
http://sourceforge.net/project/showfiles.php?group_id=40712package_id=1
39933
http://sourceforge.net/project/showfiles.php?group_id=40712package_id=1
56160

And bundled in JBoss EJB3 Embeddable RC7 and JBoss AS 4.0.4



---
Using Tomcat but need to do more? Need to support web services,
security?
Get stuff done quickly with pre-integrated technology to make your job
easier Download IBM WebSphere Application Server v.1.0.1 based on Apache
Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid0709bid3057dat1642
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


[Hibernate] mappedBy

2006-03-26 Thread Gavin King
Emmanuel, mappedBy should be able to refer to any attribute, not just an
association. Not sure what the spec says, but definitely Hibernate core
supports this.


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


[Hibernate] @Column(insertable=false, updatable=false) is broken

2006-03-26 Thread Gavin King
The following mapping:

   @Id
   @Column(name=blog_name)
   private String blogName;
   
   @OneToOne
   @Column(insertable=false, updatable=false)
   private Blog blog;

Throws:

Caused by: org.hibernate.MappingException: Repeated column in mapping
for entity: domain.HitCount column: blog_name (should be mapped with
insert=false update=false)
at
org.hibernate.mapping.PersistentClass.checkColumnDuplication(PersistentC
lass.java:575)
at
org.hibernate.mapping.PersistentClass.checkPropertyColumnDuplication(Per
sistentClass.java:597)
at
org.hibernate.mapping.PersistentClass.checkColumnDuplication(PersistentC
lass.java:615)
at
org.hibernate.mapping.PersistentClass.validate(PersistentClass.java:405)
at org.hibernate.mapping.RootClass.validate(RootClass.java:192)
at
org.hibernate.cfg.Configuration.validate(Configuration.java:984)
at
org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1
169)
at
org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Config
uration.java:414)
at
org.hibernate.ejb.Ejb3Configuration.createEntityManagerFactory(Ejb3Confi
guration.java:575)
at
org.hibernate.ejb.Ejb3Configuration.createContainerEntityManagerFactory(
Ejb3Configuration.java:245)
at
org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFacto
ry(HibernatePersistence.java:108)
at
org.jboss.ejb3.entity.PersistenceUnitDeployment.start(PersistenceUnitDep
loyment.java:260)


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


RE: [Hibernate] @Column(insertable=false, updatable=false) is broken

2006-03-26 Thread Gavin King
Oh, this is probably because you expect it to be an @JoinColumn. Still,
it should either work, or throw an exception.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Gavin
King
Sent: Sunday, March 26, 2006 7:27 PM
To: Emmanuel Bernard
Cc: Hibernate development
Subject: [Hibernate] @Column(insertable=false, updatable=false) is
broken

The following mapping:

   @Id
   @Column(name=blog_name)
   private String blogName;
   
   @OneToOne
   @Column(insertable=false, updatable=false)
   private Blog blog;

Throws:

Caused by: org.hibernate.MappingException: Repeated column in mapping
for entity: domain.HitCount column: blog_name (should be mapped with
insert=false update=false)
at
org.hibernate.mapping.PersistentClass.checkColumnDuplication(PersistentC
lass.java:575)
at
org.hibernate.mapping.PersistentClass.checkPropertyColumnDuplication(Per
sistentClass.java:597)
at
org.hibernate.mapping.PersistentClass.checkColumnDuplication(PersistentC
lass.java:615)
at
org.hibernate.mapping.PersistentClass.validate(PersistentClass.java:405)
at org.hibernate.mapping.RootClass.validate(RootClass.java:192)
at
org.hibernate.cfg.Configuration.validate(Configuration.java:984)
at
org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1
169)
at
org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Config
uration.java:414)
at
org.hibernate.ejb.Ejb3Configuration.createEntityManagerFactory(Ejb3Confi
guration.java:575)
at
org.hibernate.ejb.Ejb3Configuration.createContainerEntityManagerFactory(
Ejb3Configuration.java:245)
at
org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFacto
ry(HibernatePersistence.java:108)
at
org.jboss.ejb3.entity.PersistenceUnitDeployment.start(PersistenceUnitDep
loyment.java:260)


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting
language that extends applications into web and mobile media. Attend the
live webcast and join the prime developer group breaking into this new
coding territory!
http://sel.as-us.falkag.net/sel?cmd=kkid0944bid$1720dat1642
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


RE: [Hibernate] default HEM key generator

2006-02-07 Thread Gavin King
Steve and Emmanuel are already working on this problem. 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Bill
Burke
Sent: Tuesday, February 07, 2006 7:15 PM
To: Hibernate development
Subject: [Hibernate] default HEM key generator

Can we have a default HEM key generator that will not force an insert
when using FlushMode.NEVER?  Like Table or Sequence or some other
hibernate specific generator?

I've been working through some example applications for my book and am
finding that I have to modify pre-existing entity code to use a table
generator because I want to take advantage of the FlushMode.NEVER
semantics.

Bill


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log
files for problems?  Stop!  Download the new AJAX search engine that
makes searching your log files as easy as surfing the  web.  DOWNLOAD
SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnkkid3432bid#0486dat1642
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


RE: [Hibernate] Is Proxol actually needed in the dist?

2006-02-07 Thread Gavin King
Yep, some users are using it.

But it is completely optional and non-default, so I'm not sure if that
license requirement would be triggered.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Scott
M Stark
Sent: Tuesday, February 07, 2006 11:20 PM
To: Hibernate development
Subject: [Hibernate] Is Proxol actually needed in the dist?

Is the Proxool library actually used? It uses the old bsd style license
that has a silly requirement regarding all advertising acknowledgment:

http://proxool.sourceforge.net/licence.html

3. All advertising materials mentioning features or use of this
software must display the following acknowledgment:
This product includes software developed by the Proxool
Project (http://proxool.sourceforge.net/).




---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log
files for problems?  Stop!  Download the new AJAX search engine that
makes searching your log files as easy as surfing the  web.  DOWNLOAD
SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=kkid3432bid#0486dat1642
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnkkid3432bid#0486dat1642
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


RE: [Hibernate] Is Proxol actually needed in the dist?

2006-02-07 Thread Gavin King
What I mean is that no advertised feature of Hibernate depends upon
Proxool. 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Gavin
King
Sent: Tuesday, February 07, 2006 11:25 PM
To: Scott M Stark; Hibernate development
Subject: RE: [Hibernate] Is Proxol actually needed in the dist?

Yep, some users are using it.

But it is completely optional and non-default, so I'm not sure if that
license requirement would be triggered.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Scott
M Stark
Sent: Tuesday, February 07, 2006 11:20 PM
To: Hibernate development
Subject: [Hibernate] Is Proxol actually needed in the dist?

Is the Proxool library actually used? It uses the old bsd style license
that has a silly requirement regarding all advertising acknowledgment:

http://proxool.sourceforge.net/licence.html

3. All advertising materials mentioning features or use of this
software must display the following acknowledgment:
This product includes software developed by the Proxool
Project (http://proxool.sourceforge.net/).




---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log
files for problems?  Stop!  Download the new AJAX search engine that
makes searching your log files as easy as surfing the  web.  DOWNLOAD
SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=kkid3432bid#0486dat1642
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log
files for problems?  Stop!  Download the new AJAX search engine that
makes searching your log files as easy as surfing the  web.  DOWNLOAD
SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=kkid3432bid#0486dat1642
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnkkid3432bid#0486dat1642
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


RE: [Hibernate] hibernate 3.2

2006-02-02 Thread Gavin King
I also prefer it. 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Steve
Ebersole
Sent: Thursday, February 02, 2006 12:33 PM
To: hibernate-devel@lists.sourceforge.net
Subject: RE: [Hibernate] hibernate 3.2

Actually yes I like that better.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Emmanuel Bernard
Sent: Thursday, February 02, 2006 11:15 AM
Cc: hibernate-devel@lists.sourceforge.net
Subject: Re: [Hibernate] hibernate 3.2

Hadn't we choose to keep most advanced work on HEAD. In this case branch

for 3.1.x?
This is a very old discussion that seems to come out of my memory.

Steve Ebersole wrote:
 BTW

 I have just branched cvs for the purposes of 3.2 development, as 3.2
is
 expected to introduce a number of API changes (mainly minor stuff in 
 some of the extension APIs) and some different behaviors required for 
 EJB3.  The branch is named Branch_3_2 if you are interested...


 ---
 This SF.net email is sponsored by: Splunk Inc. Do you grep through log
files
 for problems?  Stop!  Download the new AJAX search engine that makes 
 searching your log files as easy as surfing the  web.  DOWNLOAD
SPLUNK!
 http://sel.as-us.falkag.net/sel?cmd=kkid3432bid#0486dat1642
 ___
 hibernate-devel mailing list
 hibernate-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/hibernate-devel


   



---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log
files for problems?  Stop!  Download the new AJAX search engine that
makes searching your log files as easy as surfing the  web.  DOWNLOAD
SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log
files for problems?  Stop!  Download the new AJAX search engine that
makes searching your log files as easy as surfing the  web.  DOWNLOAD
SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=kkid3432bid#0486dat1642
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnkkid3432bid#0486dat1642
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


RE: [Hibernate] join and joined-subclass not compatible

2005-12-26 Thread Gavin King
Just didn't implement it yet.

Messy changes in one of the persisters. 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Emmanuel Bernard
Sent: Monday, December 26, 2005 10:15 PM
To: Hibernate development
Subject: [Hibernate] join and joined-subclass not compatible

What's the rational behind that?
This is a massive pain in the ass for Annotations.

@Entity(access = AccessType.FIELD)
@Inheritance(strategy = InheritanceType.JOINED)
@SecondaryTable(name=ExtendedPerson)
class Person implements Serializable {
   ...
}

@Entity(access = AccessType.FIELD)
@PrimaryKeyJoinColumn(name = person_id) class Employee extends Person
{
   ...
}

If this constraint is not removed, this is going to cost me *a lot* of
refactoring if even possible.



---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log
files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37alloc_id865op=click
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


RE: [Hibernate] ImprovedNamingStrategy

2005-12-19 Thread Gavin King
Well, let's see if anyone complains... 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Emmanuel Bernard
Sent: Tuesday, December 20, 2005 7:06 AM
To: Hibernate development
Subject: [Hibernate] ImprovedNamingStrategy

When working on the new naming strategy, I've broken the use of
ImprovedNamingStrategy.
now
component name=editStatus class=com.csg.pmnet.model.EditStatus
property name=editPid column='edit_pid'/ leads to
/edit_status_edit_pid/ instead of /edit_pid.

/Should I fix that for the sake of backward compatibility, or is it OK?/
/



---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log
files for problems?  Stop!  Download the new AJAX search engine that
makes searching your log files as easy as surfing the  web.  DOWNLOAD
SPLUNK!
http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37alloc_id865op=click
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


RE: [Hibernate] ImprovedNamingStrategy

2005-12-19 Thread Gavin King
Title: RE: [Hibernate] ImprovedNamingStrategy






I guess we better fix it then.

Note that some other people previously complained that they did not like the old behavior ;)


-Original Message-
From: Emmanuel Bernard [mailto:[EMAIL PROTECTED]]
Sent: Mon 12/19/2005 6:10 PM
To: Gavin King
Cc: Hibernate development
Subject: Re: [Hibernate] ImprovedNamingStrategy

I person did so far.

Gavin King wrote:

Well, let's see if anyone complains...

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of
Emmanuel Bernard
Sent: Tuesday, December 20, 2005 7:06 AM
To: Hibernate development
Subject: [Hibernate] ImprovedNamingStrategy

When working on the new naming strategy, I've broken the use of
ImprovedNamingStrategy.
now
component name=editStatus class=com.csg.pmnet.model.EditStatus
 property name=editPid column='edit_pid'/ leads to
/edit_status_edit_pid/ instead of /edit_pid.

/Should I fix that for the sake of backward compatibility, or is it OK?/
/



---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log
files for problems? Stop! Download the new AJAX search engine that
makes searching your log files as easy as surfing the web. DOWNLOAD
SPLUNK!
http://ads.osdn.com/?ad_id=7637_id=16865=click
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel












RE: [Hibernate] ImprovedNamingStrategy

2005-12-19 Thread Gavin King
Title: RE: [Hibernate] ImprovedNamingStrategy







No more switches! :-)

-Original Message-
From: Leonardo Quijano Vincenzi [mailto:[EMAIL PROTECTED]]
Sent: Mon 12/19/2005 9:00 PM
To: Gavin King; hibernate-devel@lists.sourceforge.net
Subject: Re: [Hibernate] ImprovedNamingStrategy

Can it be switched on/off?
The old behavior is kinda flaky ;).

--
Ing. Leonardo Quijano Vincenzi
DTQ Software


Gavin King wrote:

 I guess we better fix it then.

 Note that some other people previously complained that they did not
 like the old behavior ;)










RE: [Hibernate] reveng optimistic locking

2005-12-14 Thread Gavin King
Why would it break Seam?? 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Max
Rydahl Andersen
Sent: Thursday, December 15, 2005 1:59 AM
To: Hibernate development
Subject: [Hibernate] reveng optimistic locking

Hi,

One caveat with reveng to the seam app is that we dont currently have
support for detecting optimistic locking for the generated classes - and
I reckon it kinda breaks some of the seam logic.

Do you think it is safe to auto-enable optlock for columns with the name
version and a primitive numeric type or should it be done explicitly
in reveng.xml ?

I'm mostly for having a Auto-detect optimistc locking columns option
in the reverseengineering options ...and i'm also leaning towards having
it enabled by default (who don't use optimistic locking anyway ;)

There might be quirks in larger reveng situations where it should be
possible to enable/disable autodetect optimistic locking for certain
columns/tables.

-- 
--
Max Rydahl Andersen
callto://max.rydahl.andersen

Hibernate
[EMAIL PROTECTED]
http://hibernate.org

JBoss Inc
[EMAIL PROTECTED]


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log
files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37alloc_id865op=click
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


RE: [Hibernate] reveng optimistic locking

2005-12-14 Thread Gavin King
I say just let the user specify the column name they use for versions...


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Emmanuel Bernard
Sent: Thursday, December 15, 2005 2:19 AM
To: Max Andersen
Cc: Hibernate development
Subject: Re: [Hibernate] reveng optimistic locking

Can(t you write a pluggable guess strategy, like the namingstrategy but
for guessing. This open the doors for martian models

Max Rydahl Andersen wrote:

 Hi,

 One caveat with reveng to the seam app is that we dont currently have 
 support for detecting optimistic locking for the generated classes - 
 and I  reckon it kinda breaks some of the seam logic.

 Do you think it is safe to auto-enable optlock for columns with the 
 name  version and a primitive numeric type or should it be done 
 explicitly in reveng.xml ?

 I'm mostly for having a Auto-detect optimistc locking columns option

 in  the reverseengineering options ...and i'm also leaning towards 
 having it  enabled by default (who don't use optimistic locking anyway

 ;)

 There might be quirks in larger reveng situations where it should be

 possible to enable/disable autodetect optimistic locking for certain

 columns/tables.




---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log
files for problems?  Stop!  Download the new AJAX search engine that
makes searching your log files as easy as surfing the  web.  DOWNLOAD
SPLUNK!
http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37alloc_id865op=click
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


RE: [Hibernate] reveng optimistic locking

2005-12-14 Thread Gavin King
Sure, any app that has conversations requires it. This is not in any way
Seam-specific... 

-Original Message-
From: Max Andersen 
Sent: Thursday, December 15, 2005 6:37 AM
To: Gavin King; Hibernate development
Subject: Re: [Hibernate] reveng optimistic locking

On Wed, 14 Dec 2005 20:29:13 +0100, Gavin King [EMAIL PROTECTED]
wrote:

 Why would it break Seam??

I didn't say it would break Seam, i'm saying that the logic used when
doing long conversations kinda requires optimistic locking to work well,
right ?

/max


 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Max 
 Rydahl Andersen
 Sent: Thursday, December 15, 2005 1:59 AM
 To: Hibernate development
 Subject: [Hibernate] reveng optimistic locking

 Hi,

 One caveat with reveng to the seam app is that we dont currently have 
 support for detecting optimistic locking for the generated classes - 
 and I reckon it kinda breaks some of the seam logic.

 Do you think it is safe to auto-enable optlock for columns with the 
 name version and a primitive numeric type or should it be done 
 explicitly in reveng.xml ?

 I'm mostly for having a Auto-detect optimistc locking columns option

 in the reverseengineering options ...and i'm also leaning towards 
 having it enabled by default (who don't use optimistic locking anyway 
 ;)

 There might be quirks in larger reveng situations where it should be

 possible to enable/disable autodetect optimistic locking for certain

 columns/tables.




--
--
Max Rydahl Andersen
callto://max.rydahl.andersen

Hibernate
[EMAIL PROTECTED]
http://hibernate.org

JBoss Inc
[EMAIL PROTECTED]


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37alloc_id865op=click
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


RE: [Hibernate] Hibernate Annotations 3.1beta7 and Hibernate EntityManager 3.1beta5 released

2005-12-13 Thread Gavin King
Yay!

Thanks Steve and Emmanuel for the latest revs!

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Emmanuel Bernard
Sent: Wednesday, December 14, 2005 3:24 AM
To: Hibernate development
Subject: [Hibernate] Hibernate Annotations 3.1beta7 and Hibernate
EntityManager 3.1beta5 released

Hibernate Annotations 3.1beta7 is a release compatible with Hibernate
3.1final. In addition to the usual bug fixes, focus has been made on
Hibernate Validator and Hibernate Lucene Integration enhancements. The
EJB3 naming strategy is now fully customizable using the Hibernate
NamingStrategy.
See the release note for more informations
http://sourceforge.net/project/shownotes.php?group_id=40712release_id=3
77964

Hibernate EntityManager 3.1beta5 is a release compatible with Hibernate
3.1final and Hibernate Annotations 3.1beta7. This release fixes some
bugs including some performance enhancements. You now can configure a
custom naming strategy, and override the event listeners.
See the release note for more informations
http://sourceforge.net/project/shownotes.php?release_id=377967group_id=
40712

HA and HEM users are strongly encouraged to migrate.





---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log
files for problems?  Stop!  Download the new AJAX search engine that
makes searching your log files as easy as surfing the  web.  DOWNLOAD
SPLUNK!
http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37alloc_id865op=click
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


[Hibernate] Template for generating class per entity per association

2005-12-13 Thread Gavin King
For the Seam templates I need to be able to generate a class for every
many-to-one association of every entity. Currently what I am doing is
generating everything as inner classes. Is there some better way to do
that?


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37alloc_id865op=click
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


RE: [Hibernate] HQL UNION

2005-12-08 Thread Gavin King
There is an existing issue for this.

But it is non-trivial. 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Emmanuel Bernard
Sent: Thursday, December 08, 2005 11:25 AM
To: Hibernate development
Subject: [Hibernate] HQL UNION

I guess we should consider supporting UNION in HQL at least for report
queries. It makes a lot of sense when you're working on report queries
and customers have to fallback to plain JDBC for that. Since we probably
some kind of mechanism for union already, why not push it even
further...



---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log
files for problems?  Stop!  Download the new AJAX search engine that
makes searching your log files as easy as surfing the  web.  DOWNLOAD
SPLUNK!
http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37alloc_id865op=click
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


[Hibernate] New antlr jar

2005-12-08 Thread Gavin King
Currently, we have checkstyle-all.jar sitting in our lib dir. If you now
try to use Hibernate with that in your classpath, Hibernate will break,
since it embeds and older version of antlr. We need to do something
about that, maybe use the fine-grained checkstyle jars.


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37alloc_id865op=click
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


RE: [Hibernate] Fwd: antlr 2.7.6rc1 available

2005-12-07 Thread Gavin King
Finally! 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Steve
Ebersole
Sent: Wednesday, December 07, 2005 3:58 PM
To: Max Andersen; Hibernate development
Subject: RE: [Hibernate] Fwd: antlr 2.7.6rc1 available

Sweet, just in time ;)


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Max
Rydahl Andersen
Sent: Wednesday, December 07, 2005 2:55 PM
To: Hibernate development
Subject: [Hibernate] Fwd: antlr 2.7.6rc1 available


updated antlr rc with our fixes included is now available from antlr.

/max

--- Forwarded message ---
From: Terence Parr [EMAIL PROTECTED]
To: ANTLR Interest [EMAIL PROTECTED]
Cc:
Subject: antlr 2.7.6rc1 available
Date: Wed, 07 Dec 2005 19:15:03 +0100

http://www.antlr.org/download/antlr-2.7.6rc1.tar.gz

enjoy...i'm sure I screwed up the release with all the config stuff, but
please try it out.  lib/antlr.jar is the jar you need.

Ter



--
--
Max Rydahl Andersen
callto://max.rydahl.andersen

Hibernate
[EMAIL PROTECTED]
http://hibernate.org

JBoss Inc
[EMAIL PROTECTED]



---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log
files for problems?  Stop!  Download the new AJAX search engine that
makes searching your log files as easy as surfing the  web.  DOWNLOAD
SPLUNK!
http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log
files for problems?  Stop!  Download the new AJAX search engine that
makes searching your log files as easy as surfing the  web.  DOWNLOAD
SPLUNK!
http://ads.osdn.com/?ad_idv37alloc_id865op=ick
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37alloc_id865op=click
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


RE: [Hibernate] NamingStrategy for indexes

2005-11-29 Thread Gavin King
I am -1 on ANN-180.

However, I am very +1 on having NamingStrategy support for FK names


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Emmanuel Bernard
Sent: Tuesday, November 29, 2005 8:22 AM
To: Hibernate development
Subject: [Hibernate] NamingStrategy for indexes

WDYT of this one
http://opensource.atlassian.com/projects/hibernate/browse/ANN-160

If we decide it's a good idea, we should do it before H3.1 final, but in
this case FK naming strategy would make sense too.
To be honest, I never liked the idea of setting indexes through
hibernate, so I'm not be best guy to advocate this feature.

Other problem, I don't know who is going to do it this week, we're all
super buzy. So maybe for 3.2?



---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log
files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37alloc_id865op=click
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


[Hibernate] Grammar seems to be broken

2005-11-29 Thread Gavin King
[antlrtask] C:\Projects\Hibernate3\grammar\sql-gen.g:153:39:
warning:nondetermin
ism between alts 1 and 2 of block upon
[antlrtask] C:\Projects\Hibernate3\grammar\sql-gen.g:153:39:
k==1:SQL_TOKEN


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37alloc_id865op=click
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


RE: [Hibernate] Timeout for tests

2005-11-28 Thread Gavin King
You might want to change whatever you are doing to just run the AllTests
suite, which excludes a bunch of things. 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ryan
Campbell
Sent: Monday, November 28, 2005 8:39 AM
To: Christian Bauer
Cc: Hibernate development
Subject: RE: [Hibernate] Timeout for tests

Also, there is the problem that Steve and I saw with the
org.hibernate.test.legacy.PerformanceTest.  It does not have a finally
block for closing resources in case of error, and some databases will
hang when the hibernate test case attempts to drop a table which has
transactions still open against it.  Perhaps this is the problem with
jtds and Sybase?  

At any rate, the timeout would help diagnose this without having to
reproduce manually.

 -Original Message-
 From: [EMAIL PROTECTED]
[mailto:hibernate-devel-
 [EMAIL PROTECTED] On Behalf Of Ryan Campbell
 Sent: Monday, November 28, 2005 7:29 AM
 To: Christian Bauer
 Cc: Hibernate development
 Subject: RE: [Hibernate] Timeout for tests
 
 There were at least two which were taking  200 seconds.  I have lost 
 the results I used to give you this total.
 
 The mysql and oracle runs are taking about 20 minutes each (total).
 timesten is taking about an hour.  SQL server (jtds) and Sybase
 (jconnect) are both timing out completely because they fail to
complete
 in under 3 hours.  This could be a config problem, but the consistent 
 problems I am having with long running tests make me wonder if it is 
 some new test introducing some contention?
 
  -Original Message-
  From: Christian Bauer [mailto:[EMAIL PROTECTED]
  Sent: Monday, November 28, 2005 7:15 AM
  To: Ryan Campbell
  Cc: Hibernate development
  Subject: Re: [Hibernate] Timeout for tests
 
  Ryan Campbell wrote:
   Can there be a timeout for the tests?  I'm seeing tests hang
against
   different databases.  If there was a timeout for the junit tests,
 these
   hanging tests would be reported as failures.
  
   I ran the tests on MySQL, and the longest one was 255 seconds, so 
   perhaps 500 seconds is long enough?
 
  Is that only one test, if yes, which one? I remember one of them
 running
  between 20-30 seconds but 4 minutes seems to be a real exception.
 
 
 ---
 This SF.net email is sponsored by: Splunk Inc. Do you grep through log

 files for problems?  Stop!  Download the new AJAX search engine that 
 makes searching your log files as easy as surfing the  web.  DOWNLOAD
SPLUNK!
 http://ads.osdn.com/?ad_idv37alloc_id865op=ick
 ___
 hibernate-devel mailing list
 hibernate-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/hibernate-devel


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log
files for problems?  Stop!  Download the new AJAX search engine that
makes searching your log files as easy as surfing the  web.  DOWNLOAD
SPLUNK!
http://ads.osdn.com/?ad_idv37alloc_id865op=ick
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37alloc_id865op=click
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


RE: [Hibernate] Timeout for tests

2005-11-27 Thread Gavin King
Fine by me. 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ryan
Campbell
Sent: Sunday, November 27, 2005 11:01 PM
To: Hibernate development
Subject: [Hibernate] Timeout for tests

Can there be a timeout for the tests?  I'm seeing tests hang against
different databases.  If there was a timeout for the junit tests, these
hanging tests would be reported as failures.

I ran the tests on MySQL, and the longest one was 255 seconds, so
perhaps 500 seconds is long enough?

Ideally, it could be parameterized with properties.  Something like:

 property name=junit.forkmode value=perBatch/  property
name=junit.haltonfailure value=yes/  property name=junit.fork
value=yes/  property name=junit.timeout value=50/ !-- in
milliseconds
--
 junit printsummary=yes timeout=${junit.timeout}
haltonfailure=${junit.haltonfailure} dir=${basedir}
maxmemory=256M fork=${junit.fork}
forkmode=${junit.forkmode}


Thanks,
Ryan 


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log
files for problems?  Stop!  Download the new AJAX search engine that
makes searching your log files as easy as surfing the  web.  DOWNLOAD
SPLUNK!
http://ads.osdn.com/?ad_idv37alloc_id865op=ick
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37alloc_id865op=click
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


RE: [Hibernate] How about mapping processing related properties

2005-11-21 Thread Gavin King
I am not keen on this, because naming strategy is not configuration.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Emmanuel Bernard
Sent: Monday, November 21, 2005 4:38 AM
To: Hibernate development
Subject: [Hibernate] How about mapping processing related properties

So far we've avoided properties involving mapping processing.
Max wants to introduce a naming strategy property.

There are several issues:
1 - you can set properties before / after / in between properties
mapping = this is already the case for setNamingStrategy()
2 - who is going to win between a property and it's object
representation (ie setNS() vs setProperty(naming_strategy) vs
hibernate.cfg.xml)
3 - has to be a no-arg constructor

Are we ready to open Hibernate core to such subtle configuration errors,
or should I keep this in HEM?



---
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


---
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_idv28alloc_id845op=click
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


RE: [Hibernate] Flush behavior

2005-11-21 Thread Gavin King
You are quite wrong.

The persist() is applied and cascades at flush time.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Christian Bauer
Sent: Monday, November 21, 2005 1:46 AM
To: Hibernate development
Subject: Re: [Hibernate] Flush behavior


On Nov 21, 2005, at 2:03 AM, Gavin King wrote:

 Huh?

http://opensource.atlassian.com/projects/hibernate/browse/HHH-1181

s.persist(o) is only transitive to anything reachable at call time.  
em.persist(o) is transitive at flush time.



---
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam for All
Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


---
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_idv28alloc_id845op=click
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


RE: [Hibernate] Flush behavior

2005-11-21 Thread Gavin King
Oh, you mean in plain Hibernate, not in HEM.

This is again correct. You must enable cascade save-update, as in all
versions of Hibernate.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Gavin
King
Sent: Monday, November 21, 2005 5:07 AM
To: Christian Bauer; Hibernate development
Subject: RE: [Hibernate] Flush behavior

You are quite wrong.

The persist() is applied and cascades at flush time.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Christian Bauer
Sent: Monday, November 21, 2005 1:46 AM
To: Hibernate development
Subject: Re: [Hibernate] Flush behavior


On Nov 21, 2005, at 2:03 AM, Gavin King wrote:

 Huh?

http://opensource.atlassian.com/projects/hibernate/browse/HHH-1181

s.persist(o) is only transitive to anything reachable at call time.  
em.persist(o) is transitive at flush time.



---
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam for All
Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


---
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam for All
Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_idv28alloc_id845op=ick
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


---
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_idv28alloc_id845op=click
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


RE: [Hibernate] Flush behavior

2005-11-21 Thread Gavin King
 
 This is again correct. You must enable cascade save-update, as in all

 versions of Hibernate.

 Why?

Because no other behavior would be well-defined.


---
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_idv28alloc_id845op=click
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


RE: [Hibernate] Flush behavior

2005-11-21 Thread Gavin King
I don't understand what is so difficult to understand here.

Persist() is no different to delete(), merge() or evict() in this
respect.

You have to explain things in terms of what operation is applied at
flush time. In the case of Hibernate it is the save/update operation. In
the case of EJB3 it is the persist operation.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Christian Bauer
Sent: Monday, November 21, 2005 6:18 AM
To: Hibernate development
Subject: Re: [Hibernate] Flush behavior


On Nov 21, 2005, at 2:46 PM, Christian Bauer wrote:

 Why?

Ok, so I'm trying to come up with a paragraph that explains this for the
documentation:

Note that if you use cascade=persist, Hibernate will only cascade the
persistent state to associated entities reachable at call time.  
If more transient entities are associated with already persistent
instances, they will not become persistent, unless you also use the
save-update option, cascade=persist, save-update. Hibernate then
cascades the persistent state at flush time to all reachable entity
instances, if save-update is enabled for an association.

Correct?



---
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam for All
Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


---
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_idv28alloc_id845op=click
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


RE: [Hibernate] query statistics

2005-11-21 Thread Gavin King
Could the query plan cache both expanded and non-expanded SQL?

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Steve
Ebersole
Sent: Monday, November 21, 2005 6:49 AM
To: Hibernate devel
Subject: [Hibernate] query statistics

In relation to
http://opensource2.atlassian.com/projects/hibernate/browse/HHH-73
(Statistics for HQL queries use pre-processed query string):

The original issue behind this case is now easy to fix because of the
introduction of query plans.  The query plans know about the query
strings before any processing has occurred.  So simply moving the stats
API calls into the query plans will get around the mentioned issue.

However, I brought up another point there regarding parameter-list
expansion.  Currently, this is done within the QueryImpls, such that the
expansion has occurred before the query string even gets to query
plans/translators.  This leads to scenarios where the HQL:
from Animal where description in (:descriptionList)
Results in different statistics being tracked based on the number of
parameters actually contained in the bound descriptionList.

To me, for the same arguments as the original issue, it is non-intuitive
to issue from Animal where description in (:descriptionList) as an HQL
query, but to see things like from Animal where description in
(:descriptionList0_, :descriptionList1_) in the statistics. 

The flip side of this is that correcting this behavior means delaying
generation of the actual SQL until the QueryParameters are actually
known.  AFAICT, this really only effects the tools since the tools want
to display the translated SQL within the console; however, the SQL may
not be fully resolvable at that point in time if we start delaying the
resolution of the SQL till execution.

So I wanted to open this up for discussion.  What makes the most sense
here?  


---
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam for All
Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_idv28alloc_id845op=ick
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


---
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_idv28alloc_id845op=click
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


RE: [Hibernate] query statistics

2005-11-21 Thread Gavin King
Right. The only downside would be increased mem usage, I suppose. 

-Original Message-
From: Steve Ebersole 
Sent: Monday, November 21, 2005 6:54 AM
To: Gavin King; 'Hibernate devel'
Subject: RE: [Hibernate] query statistics

I guess we could make it so.  This issue is that currently it does not
know the non-expanded query.

-Original Message-
From: Gavin King
Sent: Monday, November 21, 2005 8:51 AM
To: Steve Ebersole; Hibernate devel
Subject: RE: [Hibernate] query statistics

Could the query plan cache both expanded and non-expanded SQL?

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Steve
Ebersole
Sent: Monday, November 21, 2005 6:49 AM
To: Hibernate devel
Subject: [Hibernate] query statistics

In relation to
http://opensource2.atlassian.com/projects/hibernate/browse/HHH-73
(Statistics for HQL queries use pre-processed query string):

The original issue behind this case is now easy to fix because of the
introduction of query plans.  The query plans know about the query
strings before any processing has occurred.  So simply moving the stats
API calls into the query plans will get around the mentioned issue.

However, I brought up another point there regarding parameter-list
expansion.  Currently, this is done within the QueryImpls, such that the
expansion has occurred before the query string even gets to query
plans/translators.  This leads to scenarios where the HQL:
from Animal where description in (:descriptionList)
Results in different statistics being tracked based on the number of
parameters actually contained in the bound descriptionList.

To me, for the same arguments as the original issue, it is non-intuitive
to issue from Animal where description in (:descriptionList) as an HQL
query, but to see things like from Animal where description in
(:descriptionList0_, :descriptionList1_) in the statistics. 

The flip side of this is that correcting this behavior means delaying
generation of the actual SQL until the QueryParameters are actually
known.  AFAICT, this really only effects the tools since the tools want
to display the translated SQL within the console; however, the SQL may
not be fully resolvable at that point in time if we start delaying the
resolution of the SQL till execution.

So I wanted to open this up for discussion.  What makes the most sense
here?  


---
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam for All
Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_idv28alloc_id845op=ick
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


---
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_idv28alloc_id845op=click
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


RE: [Hibernate] Flush behavior

2005-11-20 Thread Gavin King
Negative.

Hibernate cascades the saveOrUpdate() operation, EJB3 cascades the
persist() operation.

They should and are quite different. 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Christian Bauer
Sent: Sunday, November 20, 2005 3:43 AM
To: Hibernate development
Subject: [Hibernate] Flush behavior

 http://opensource.atlassian.com/projects/hibernate/browse/HHH-1181

They should be synchronized, if we have the same methods on Session and
on EM, they should do the same.



---
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam for All
Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


---
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_idv28alloc_id845op=click
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


RE: [Hibernate] specific annotation for collection of elements

2005-11-20 Thread Gavin King
IMO, the @OneToMany annotation should not be used for collections of
value-typed objects.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Emmanuel Bernard
Sent: Sunday, November 20, 2005 3:41 AM
To: Hibernate development
Subject: [Hibernate] specific annotation for collection of elements

It started from
turin42:
i read the spec and the docs
and i've got a hard time explaining the abuse of @OneToMany is this how
it is going to look like in EJB 3.1?

epbernard:
Nothing is specified for such things in EJB3 nor even globally designed
What do you mean by @OneToMany abuse

turin42:
@OneToMany on a collection of strings conflicts with our explanation of
one-to-many _entity_ associations i think a separate set of annotations
would be better

epbernard:
I wanted the spec commity to rename targetEntity by targetElement

turin42:
that would have been a first step
but still, i think the completely different semantics of whats _inside_
that collection deserve different annotations lifecycle, shared
references, identity, etc.
i would reserve *-to-* only for entity associations thats what we have
always done in hibernate keep in mind that this stuff is the most
difficult thing to understand in ORM also, we use @Embedded and not
@OneToOne what about a @org.hibernate.annotations.CollectionEmbedded
supporting @JoinTable and @AttributeOverride



But actually,
you can do

@CollectionEmbedded
@Embedded
public SetAddress getAddresses();

or

@CollectionEmbedded
//no embedded here so address will be stored in its serialized form
public SetAddress getAddresses();


So I'm not so happy of the @CollectionEmbedded name (the fact that
embedded is inside), WDY all T?
@CollectionElement, @ElementCollection?



---
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


---
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_idv28alloc_id845op=click
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


RE: [Hibernate] Second level cache and mappedBy side of a FK one-to-one

2005-11-20 Thread Gavin King
This would be quite difficult to implement.

Internally, a one-to-one property-ref looks nothing like a collection.
 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Emmanuel Bernard
Sent: Sunday, November 20, 2005 2:28 AM
To: Hibernate development
Subject: [Hibernate] Second level cache and mappedBy side of a FK
one-to-one

Owner side
many-to-one name=person class=Person column=PERSON_ID
unique=true/

mappedBy side
one-to-one nameemployee class=Employee property-ref=person/

In this case, the owner side is resolved in cache, and not the mappedBy
side (if I load person, employee will be resolved in the 2nd cache, if
employee is loaded, person cannot be resolved in the 2nd level cache)
But the mapped by side is actually some kind of 1 element collection (in
a true bidir many to one we can cache both sides. Would it make sense to
allow caching of the mappedBy side with a same mechanism than the one
used in collections?



---
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam for All
Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


---
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_idv28alloc_id845op=click
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


RE: [Hibernate] Flush behavior

2005-11-20 Thread Gavin King
Huh? 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Christian Bauer
Sent: Sunday, November 20, 2005 12:58 PM
To: Hibernate development
Subject: Re: [Hibernate] Flush behavior


On Nov 20, 2005, at 6:48 PM, Gavin King wrote:

 Hibernate cascades the saveOrUpdate() operation, EJB3 cascades the
 persist() operation.

 They should and are quite different.

But why are persist (and possibly merge) only cascaded at call time and
not at flush time, if I use the Session API? I think no other operation
has that behavior and if I read the spec correctly, it also doesn't
happen in EJB3. 


---
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam for All
Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


---
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_idv28alloc_id845op=click
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


[Hibernate] Please help keep JIRA clean!

2005-11-18 Thread Gavin King








Guys, 



Id like to request that everyone here pitch in and be
a bit more aggressive about closing off useless JIRA issues. JIRA is absolutely
no use to us if it is clogged up with thousands of issues that no-one is going
to look at in the next two years!



Remember, JIRA is for *our
benefit as developers*, it is *not*
there to allow users to escalate problems they are having in the forum, or to
give them an outlet for nagging/whinging. If an issue report is not serving a useful
purpose for us (ie, we will actually get round to *fixing* the issue sometime in the next year) then it should be
immediately closed. It is otherwise extremely difficult to get a handle upon
what is the overall status of the project in terms of known bugs, and high priority
new features.



There is a particular kind of user who thinks that every
issue they report in JIRA deserves some kind of special personalized response
from the Hibernate Team. This is *absolutely
not the case*. JIRA is *not*
a support portal, rather, it is our personal TODO list.



Thanks.



Gavin








RE: [Hibernate] Please help keep JIRA clean! (comment for issue HHH-1005)

2005-11-18 Thread Gavin King

 Now, I apologize for cloning the issue. I just found it rude and 
 inconsiderate for a commiter to close an issue without giving a proper

 commentary.

 Yes, every report in JIRA deserves personalized response from the 
 Hibernate Team. Not for support, but for giving it at least
consideration!


On the contrary, if we had to write spend time writing essays in
response 
to every JIRA Issue, we would never get any useful work done.




---
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_idv28alloc_id845op=click
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


RE: [Hibernate] New NamingStrategy

2005-11-09 Thread Gavin King
Title: RE: [Hibernate] New NamingStrategy






Great!


-Original Message-
From: [EMAIL PROTECTED] on behalf of Emmanuel Bernard
Sent: Wed 11/9/2005 12:19 PM
To: Hibernate development
Subject: [Hibernate] New NamingStrategy

Hi,
For some times now, I've been thinking and implementing a NamingStrategy
that could handle the EJB3 definitions
Here is the result

//$Id: NamingStrategy.java,v 1.1 2004/06/03 16:30:05 steveebersole Exp $
package org.hibernate.cfg;

/**
* A set of rules for determining the physical column
* and table names given the information in the mapping
* document. May be used to implement project-scoped
* naming standards for database objects.
*
* @see DefaultNamingStrategy
* @see ImprovedNamingStrategy
* @author Gavin King
* @author Emmanuel Bernard
*/
public interface NamingStrategy {
 /**
 * Return a table name for an entity class
 * @param className the fully-qualified class name
 * @return a table name
 */
 public String classToTableName(String className);
 /**
 * Return a column name for a property path _expression_
 * @param propertyName a property path
 * @return a column name
 */
 public String propertyToColumnName(String propertyName);
 /**
 * Alter the table name given in the mapping document
 * @param tableName a table name
 * @return a table name
 */
 public String tableName(String tableName);
 /**
 * Alter the column name given in the mapping document
 * @param columnName a column name
 * @return a column name
 */
 public String columnName(String columnName);
 /**
 * Return a table name for a collection
 * @param className the fully-qualified name of the owning entity class
 * @param propertyName a property path
 * @return a table name
 * @deprecated by [EMAIL PROTECTED] #collectionTableName(String, String, String)} ?
 */
 public String propertyToTableName(String className, String
propertyName);
 /**
 * Return a collection table name ie an association having a join table
 *
 * @param ownerEntityTable owner side table name
 * @param associatedEntityTable reverse side table name if any
 * @param propertyName collection role
 */
 public String collectionTableName(String ownerEntityTable, String
associatedEntityTable, String propertyName);
 /**
 * Return the join key column name ie a FK column used in a JOINED
strategy or for a secondary table
 *
 * @param joinedColumn joined column name (logical one) used to join
with
 * @param joinedTable joined table name (ie the referenced table)
used to join with
 */
 public String joinKeyColumnName(String joinedColumn, String
joinedTable);
 /**
 * Return the foreign key column name for the given parameters
 * @param propertyName the property name involved
 * @param propertyTableName the property table name involved
(logical one)
 * @param referencedColumnName the referenced column name involved
(logical one)
 */
 public String foreignKeyColumnName(String propertyName, String
propertyTableName, String referencedColumnName);
 /**
 * Return the logical column name used to refer to a column in the
metadata
 * (like index, unique constraints etc)
 * A full bijection is required between logicalNames and physical ones
 * logicalName have to be case insersitively unique for a given table
 *
 * @param columnName given column name if any
 * @param propertyName property name of this column
 */
 public String logicalColumnName(String columnName, String propertyName);
 /**
 * Returns the logical collection table name used to refer to a
table in the mapping metadata
 *
 * @param tableName the metadata explicit name
 * @param ownerEntityTable owner table entity table name (logical one)
 * @param associatedEntityTable reverse side table name if any
(logical one)
 * @param propertyName collection role
 */
 public String logicalCollectionTablelName(String tableName, String
ownerEntityTable, String associatedEntityTable, String propertyName);

 /**
 * Returns the logical foreign key column name used to refer to this
column in the mapping metadata
 *
 * @param columnName given column name in the metadata if any
 * @param propertyName property name
 * @param referencedColumn referenced column name (logical one) in
the join
 */
 public String logicalCollectionColumnName(String columnName, String
propertyName, String referencedColumn);
}


Here is the EJB3 implementation

//$Id: $
package org.hibernate.cfg;

import org.hibernate.util.StringHelper;
import org.hibernate.AssertionFailure;

/**
* NAming strategy implementing the EJB3 standards
*
* @author Emmanuel Bernard
*/
public class EJB3NamingStrategy implements NamingStrategy {
 public static final NamingStrategy INSTANCE = new EJB3NamingStrategy();

 public String classToTableName(String className) {
 return StringHelper.unqualify(className);
 }

 public String propertyToColumnName(String propertyName) {
 return StringHelper.unqualify(propertyName);
 }

 public String tableName(String tableName) {
 return tableName;
 }

 public String columnName(String columnName) {
 return columnName

RE: [Hibernate] Wrapping FETCH results in set

2005-11-08 Thread Gavin King
Title: RE: [Hibernate] Wrapping FETCH results in set






This is MUCH more difficult to implement than you think.


-Original Message-
From: [EMAIL PROTECTED] on behalf of Christian Bauer
Sent: Mon 11/7/2005 6:34 PM
To: Hibernate development
Subject: [Hibernate] Wrapping FETCH results in set

I'd like to bring up something we hesitated to change so far, but we /
could/ consider in H 3.1 final:

Wrapping FETCH query results in a HashSet before returning it, for
the case of a single-entity projection. We already need a small
migration guide for the new defined auto commit connection behavior,
so this might be a good chance.



---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42 plasma tv or your very own
Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel







RE: [Hibernate] Table generators and int/long etc

2005-11-03 Thread Gavin King
Title: RE: [Hibernate] Table generators and int/long etc







The int value coming from the table is combined with a the high value to
produce a larger value. I don't see a problem here.

-Original Message-
From: [EMAIL PROTECTED] on behalf of Emmanuel Bernard
Sent: Thu 11/3/2005 5:01 AM
To: Hibernate development
Subject: [Hibernate] Table generators and int/long etc

All table hilo generators are actually using rs.setInt() rs.getInt()
I've always been incomfortable with that.

What do you think of this proposal? If nobody complains, I can implement
that for 3.1

http://forum.hibernate.org/viewtopic.php?p=2269441#2269441
/I am attempting to use the hilo generator where the column is a long.
Looking at the TableHiLoGenerator class, it appears to me that the
generation goes through a step in which it is converted to an int. The
particular method is:

TableGenerator.doWorkInCurrentTransaction(Connection conn, String sql)

Within this method, we perform the select query to get the next value,
then perform the update to increment the counter. However, we extract
the select query resultSet with:

result = rs.getInt(1);

And we update the query with:

ups.setInt( 1, result + 1 );
ups.setInt( 2, result );

If I'm not mistaken, those ...Int() methods are bugs. Instead, these
get/set methods should be delegated to the IdentifierGeneratorFactory
class (which has a get method but would need a set).
/







RE: [Hibernate] 3.1 rc2

2005-10-15 Thread Gavin King
Title: [Hibernate] 3.1 rc2






Great


De: [EMAIL PROTECTED] 
en nombre de Steve EbersoleEnviado el: vie 14/10/2005 
16:41Para: Hibernate developmentAsunto: [Hibernate] 3.1 
rc2

So as far as I am concerned, I am ready to push out 
3.1rc2. Anythinganyone else wanted to get into this before I cut 
it?I hope to get time to do it this weekend. If not, it'll be 
early nextweek.Here is the change-log so far:** 
Bug * [HHH-1045] - Example contains inner classes that 
aren'tserializable** Improvement * [HHH-1038] 
- make 'auto' the default 
forhibernate.connection.release_mode * [HHH-1042] - 
determine "expected type" of parameter during HQLparsingIt is really 
for HHH-1038 that I want to get this out 
there.---This 
SF.Net email is sponsored by:Power Architecture Resource Center: Free 
content, downloads, discussions,and more. http://solutions.newsforge.com/ibmarch.tmpl___hibernate-devel 
mailing listhibernate-devel@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/hibernate-devel




RE: [Hibernate] Collections evicted from cache for update/recreate

2005-09-29 Thread Gavin King
Right, this is necessary to handle the possibility of concurrent inserts
in diff transactions. 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Matthew Mastracci
Sent: Thursday, 29 September 2005 11:24 PM
To: hibernate-devel@lists.sourceforge.net
Subject: [Hibernate] Collections evicted from cache for update/recreate

I'm looking at code from both Hibernate 3.1 and the latest NHibernate
code and they seem to share a behaviour that I'm curious about.  I think
it has a rational explanation, but I'm unable to discover what it is.

Hibernate seems to evict a collection from the cache whenever an update
is made to the collection.  What I find strange, however, is that it
doesn't update the collection in the cache with the new contents of the
collection while it has it available.

The end result of this is that any collection modified during one
session will be read from the database during a second session, no
matter what the cache settings would be.

Is there any reason that the collection actions couldn't update the
cache with the new collection instead of doing a full eviction?  I'll
admit that my understanding of the caching model of Hibernate is still
young and I might have overlooked something completely obvious.

Thanks,
Matt.



---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads,
discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


RE: [Hibernate] sessionfactoryimpl.close()

2005-09-27 Thread Gavin King
I think it would be perfectly reasonable to clear the internal
collections. 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Max
Rydahl Andersen
Sent: Monday, 26 September 2005 3:20 PM
To: Emmanuel Bernard
Cc: Hibernate development
Subject: Re: [Hibernate] sessionfactoryimpl.close()

 OTOH, this will consume some extra CPU time for nothing since the GC 
 will do that job anyway.

is sf.close() cpu critical ? Even with a clean up it shouldn't be bad,
or ?

/max


 Max Rydahl Andersen wrote:

 Hi guys,

 Any reason why we don't empty all the collections we are holding onto

 in  the sessionfactory ?
 Are we just letting that be up to the garbage collector to handle or 
 how ?  :)

 It is not a memory leak as the garbage collector will get them when 
 the  user actually lets go
 of the sessionfactory (sf = null), but it could probably save us some

 forum argumenting since
 a profiler will list the sessionfactory as a leach even after
 sf.close()  has been called.





--
--
Max Rydahl Andersen
callto://max.rydahl.andersen

Hibernate
[EMAIL PROTECTED]
http://hibernate.org

JBoss Inc
[EMAIL PROTECTED]
http://www.jboss.com/events/jbossworld
JBoss World Barcelona 10-12 October


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server.
Download it for free - -and be entered to win a 42 plasma tv or your
very own Sony(tm)PSP.  Click here to play:
http://sourceforge.net/geronimo.php
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42 plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


[Hibernate] EJB3NamingStrategy

2005-08-31 Thread Gavin King
Title: EJB3NamingStrategy






Emmanuel,


Currently I guess Hibernate Annotations is implementing the default column/table naming standards defined by the spec in AnnotationBinder. Have you given any thought to doing this stuff as a NamingStrategy? Most likely it would require some change to the NamingStrategy interface, but that is probably acceptable.

It's just that it would be more re-useable this way.





RE: [Hibernate] Default values for collection of elements

2005-08-23 Thread Gavin King
Can you de-pluralize the name of the association? I guess that is too
hard...




-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Emmanuel Bernard
Sent: Tuesday, 23 August 2005 4:39 PM
To: hibernate-devel@lists.sourceforge.net
Subject: [Hibernate] Default values for collection of elements

I've finally implemented the most awaited features of annotations ever (
even before JDK 5 came out ;-) ): collection of primitive and core type.

I'm wondering the appropriate defaults though:

@Entity
public class MyClass {
  @Id getId() {...}
  @OneToMany
  public SetString getElements() {...}

create a MyClass_elements table
having a MyClass_id column (default for EJB3) and an 'elt' column

'elt' is the default for HBM, but 'elements' might be a better one.

Any opinion, better defaults?



---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle
Practices Agile  Plan-Driven Development * Managing Projects  Teams *
Testing  QA Security * Process Improvement  Measurement *
http://www.sqe.com/bsce5sf
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


RE: [Hibernate] Configuration artifact precedence

2005-08-19 Thread Gavin King
Well, Hibernate will throw an exception if you try to map the same class
twice to the same entityName. 

-Original Message-
From: Emmanuel Bernard [mailto:[EMAIL PROTECTED] 
Sent: Friday, 19 August 2005 5:22 PM
To: Gavin King
Cc: Jordan Laughlin; hibernate-devel@lists.sourceforge.net
Subject: Re: [Hibernate] Configuration artifact precedence

And how do you compare a bunch (think inheritance) of hbms and a bunch
of annotated classes? Even a single cfg file and an annotated class? By
creating a specific comparison code? By creating the metamodel for both
and comparing them? All that work for an exception...

Gavin King wrote:

I must admit, that this makes sense to *me*
 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of 
Jordan Laughlin
Sent: Friday, 19 August 2005 2:46 PM
To: hibernate-devel@lists.sourceforge.net
Subject: Re: [Hibernate] Configuration artifact precedence

Wouldn't it make sense for it to throw an exception if the mappings are

different, otherwise who cares? In migrating, if one makes a mistake it

would be good to know - xxx has two different configurations and not 
pick one which has precedence (I'm coming from the standpoint of 
someone who may be migrating soon). Unless, of course, the 
configuration artifacts are always different between those mapped by 
Annotations/ejb3xml and those mapped by hbm.xml. It would also 
definately make sense if this was configurable.

I'm thinking out loud too :P

-JL

- Original Message -
From: Max Rydahl Andersen [EMAIL PROTECTED]
To: Emmanuel Bernard [EMAIL PROTECTED]
Cc: hibernate-devel@lists.sourceforge.net
Sent: Friday, August 19, 2005 5:23 AM
Subject: Re: [Hibernate] Configuration artifact precedence


  

Yes I know the problem - and I also didn't find any hint in the spec


about
  

how they plan to define the precedence with respect to ejb3 xml in 
relation to annotations...any news on that ?

And I guess having precedence as something you can change to allow for



  

easier migration would be a good thing.

As it is now Annotations/ejb3xml wins first - correct ?

But couldn't we just say hbm.xml wins first and then users can remove


the
  

hbm.xml when they want the annotations to take over ? Or will that not

have any affect because the annotation



  

process occurs before users get the chance to add their hbm.xml 
files...

Just thinking out loud...

/max




When Christian migrate CaveatEmptor to HEM, the encounters issues
  

with
  

the discovery mechanism, because there were no notion of precedence.
  

I
  

think the idea of configurable precedence came from here. I have to 
admit I liked the idea to ease migrations. It's a bit like the BIOS
  

boot
  

ordering, you never used it, until you have to.
The problem is that I discover them in the jar file, they are not
  

added
  

by the user. So I have no idea of the ordering.

  

when will we ever have a user add both a hbm.xml AND ejb3xml file ?
And if we have - again, why not just choose the first one that gets 
added to the configuration by the user ?

/max



Well, just to let you know and to help me to find a good 
configuration property name.
  


What kind of values does it take ?






---
SF.Net email is Sponsored by the Better Software Conference  EXPO 
September 19-22, 2005 * San Francisco, CA * Development Lifecycle 
Practices Agile  Plan-Driven Development * Managing Projects  
Teams *
  

Testing
  

  QA
Security * Process Improvement  Measurement * 
http://www.sqe.com/bsce5sf 
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel
  








---
SF.Net email is Sponsored by the Better Software Conference  EXPO 
September 19-22, 2005 * San Francisco, CA * Development Lifecycle 
Practices Agile  Plan-Driven Development * Managing Projects  Teams 
* Testing


 QA
  

Security * Process Improvement  Measurement *


http://www.sqe.com/bsce5sf
  

___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel






---
SF.Net email is Sponsored by the Better Software Conference  EXPO 
September 19-22, 2005 * San Francisco, CA * Development Lifecycle 
Practices Agile  Plan-Driven Development * Managing Projects  Teams *

Testing  QA Security * Process Improvement  Measurement * 
http://www.sqe.com/bsce5sf 
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel

[Hibernate] Cfg properties for EntityManager

2005-08-15 Thread Gavin King
Title: Cfg properties for EntityManager






Browsing through the HibernatePersistence class, I'm having a great deal of trouble figuring out if there are some patterns used for the naming of properties. For example we have:

 hibernate.ejb.cfgfile

 hibernate.hbmxml.files


 hibernate.ejb.classes

 hibernate.ejb.packages

 hibernate.hbmxml.files


 hibernate.jacc.ctx.id


 hibernate.archive.autodetection



We need to get these cleaned up and made more consistent with the standards used by the hibernate core. Yes, I realize that some of the property names of the cofe are not *perfect*, but there is a higher level of internal consistency.




[Hibernate] Insert...select... And version numbers

2005-08-13 Thread Gavin King
Title: Insert...select... And version numbers






I discovered that DB2 does not support parameters in the select clause of SQL insert . select . queries.


This is a bit of a problem for the auto-version seeding stuff. Currently we generate SQL like this:


 insert (id, version, ) values (seq.nextval, ?,  )


I do have a temporary workaround for DB2, but I'm wondering how much work it would be to generate the following SQL instead:

For integral version types:


 insert (id, version, ) values (seq.nextval, 0,  )


For timestamp source=db/


 insert (id, version,  ) values (seq.nextval, sysdate, . )


We are still going to need parameters for UserVersionTypes and timestamp source=jvm/.


Steve, what do you think?





RE: [Hibernate] Oracle gurus: lock and pagination?

2005-08-11 Thread Gavin King
I know about this.

The problem was sorta fixed in HB3, but not really.

I'm not sure I will really be able to fix it completely. 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Emmanuel Bernard
Sent: Thursday, 11 August 2005 12:36 PM
To: hibernate-devel@lists.sourceforge.net
Subject: [Hibernate] Oracle gurus: lock and pagination?

http://forum.hibernate.org/viewtopic.php?p=2255452#2255452



---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle
Practices Agile  Plan-Driven Development * Managing Projects  Teams *
Testing  QA Security * Process Improvement  Measurement *
http://www.sqe.com/bsce5sf
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


RE: [Hibernate] timestamp source=db/

2005-08-03 Thread Gavin King
My understanding is that if you want to do stuff like this in HSQLDB,
you must create a special dual table manually. However, I think it is
reasonable to fall back to jvm datetime for HSQLDB, since the
overwhelmingly common case is that HSQL is running in-process *anyway*.


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Steve
Ebersole
Sent: Wednesday, 3 August 2005 5:45 PM
To: Hibernate devel
Subject: [Hibernate] timestamp source=db/

I just added support for optimistic locking based on the database
server's current timestamp, as opposed to the jvm timestamp.

However, was not sure how to retrieve the current timestamp for all
dialects (I got all the major ones expect HSQLDB).  So if a certain
Dialect is near and dear to your heart, please make sure it supports
this properly.  Look for the Dialect.getCurrentTimestampSelectString()
and Dialect.isCurrentTimestampSelectStringCallable() methods.

Thanks. 


---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle
Practices Agile  Plan-Driven Development * Managing Projects  Teams *
Testing  QA Security * Process Improvement  Measurement *
http://www.sqe.com/bsce5sf
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


RE: [Hibernate] Fwd: [Hibernate-commits] Hibernate3/src/org/hibernate/util ArrayHelper.java,1.14,1.15

2005-07-19 Thread Gavin King
'Cos it sucks and was obsoleted by loader and was never documented.

 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Max
Rydahl Andersen
Sent: Tuesday, 19 July 2005 2:24 PM
To: Hibernate development
Subject: [Hibernate] Fwd: [Hibernate-commits]
Hibernate3/src/org/hibernate/util ArrayHelper.java,1.14,1.15


Seen in cvs commit:
removed support for query-list

...why ?

/max



---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77alloc_id492op=click
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


RE: [Hibernate] Field interception based proxies

2005-06-30 Thread Gavin King
Juozas, I don't really understand what you are proposing here.

What is a field interception based proxy?

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
baliuka juozas
Sent: Wednesday, 29 June 2005 9:30 AM
To: hibernate-devel@lists.sourceforge.net
Subject: [Hibernate] Field interception based proxies

Hi,
I am going to implement field interception based proxies, I will need
this stuff for projects with many classes (I see it can be implemnted
using custom persister), probably it makes sence to add this feature for
hibernate too if this is interesting for hibernate community.
Implemetation must be trivial, but there is single problem with id field
name. I can asume this field name is always id, but if we are going to
make this stuff public then we need to find better way.

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com 


---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77alloc_id492op=click
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


RE: [Hibernate] Field interception based proxies

2005-06-30 Thread Gavin King
Will it work with polymorphic -to-one associations?

You still need the indirection in that case, don't you?

-Original Message-
From: baliuka juozas [mailto:[EMAIL PROTECTED] 
Sent: Thursday, 30 June 2005 11:37 AM
To: Gavin King; hibernate-devel@lists.sourceforge.net
Subject: RE: [Hibernate] Field interception based proxies


I think it must be usefull to avoid proxy generation if persistent class
implements HibernateProxy
itself. I am going to implement it at build time using field interceptor
( it will take less time on startup and it will use less permanent
memory ). It is not a proxy, but it will work in the same way  from
user point of view ( without changes in mapping files, just an heuristic
optimization ). As I understand it  needs trivial changes in proxy
factory, but it makes sence with many domain classes.

--- Gavin King [EMAIL PROTECTED] wrote:

 Juozas, I don't really understand what you are proposing here.
 
 What is a field interception based proxy?
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]
 On Behalf Of
 baliuka juozas
 Sent: Wednesday, 29 June 2005 9:30 AM
 To: hibernate-devel@lists.sourceforge.net
 Subject: [Hibernate] Field interception based proxies
 
 Hi,
 I am going to implement field interception based proxies, I will need 
 this stuff for projects with many classes (I see it can be implemnted 
 using custom persister), probably it makes sence to add this feature 
 for hibernate too if this is interesting for hibernate community.
 Implemetation must be trivial, but there is single problem with id 
 field name. I can asume this field name is always id, but if we are 
 going to make this stuff public then we need to find better way.
 
 __
 Do You Yahoo!?
 Tired of spam?  Yahoo! Mail has the best spam protection around 
 http://mail.yahoo.com
 
 

---
 SF.Net email is sponsored by: Discover Easy Linux Migration Strategies

 from IBM. Find simple to follow Roadmaps, straightforward articles, 
 informative Webcasts and more! Get everything you need to get up to 
 speed, fast.

http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click
 ___
 hibernate-devel mailing list
 hibernate-devel@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/hibernate-devel
 
 

---
 SF.Net email is sponsored by: Discover Easy Linux Migration Strategies

 from IBM. Find simple to follow Roadmaps, straightforward articles, 
 informative Webcasts and more! Get everything you need to get up to 
 speed, fast.
 http://ads.osdn.com/?ad_idt77alloc_id492op=click
 ___
 hibernate-devel mailing list
 hibernate-devel@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/hibernate-devel
 





Yahoo! Sports
Rekindle the Rivalries. Sign up for Fantasy Football
http://football.fantasysports.yahoo.com


---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77alloc_id492op=click
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


RE: [Hibernate] Field interception based proxies

2005-06-30 Thread Gavin King
Yes, exactly. 

-Original Message-
From: baliuka juozas [mailto:[EMAIL PROTECTED] 
Sent: Thursday, 30 June 2005 1:22 PM
To: Gavin King; hibernate-devel@lists.sourceforge.net
Subject: RE: [Hibernate] Field interception based proxies


I see no good way to make it lazy and to create the right type for
polymorphic associations, if I understand the problem correctly then we
need to know discriminator value before to create instance anyway. 
 
--- Gavin King [EMAIL PROTECTED] wrote:

 Will it work with polymorphic -to-one associations?
 
 You still need the indirection in that case, don't you?
 
 -Original Message-
 From: baliuka juozas [mailto:[EMAIL PROTECTED]
 Sent: Thursday, 30 June 2005 11:37 AM
 To: Gavin King;
 hibernate-devel@lists.sourceforge.net
 Subject: RE: [Hibernate] Field interception based proxies
 
 
 I think it must be usefull to avoid proxy generation
 if persistent class
 implements HibernateProxy
 itself. I am going to implement it at build time
 using field interceptor
 ( it will take less time on startup and it will use
 less permanent
 memory ). It is not a proxy, but it will work in
 the same way  from
 user point of view ( without changes in mapping
 files, just an heuristic
 optimization ). As I understand it  needs trivial
 changes in proxy
 factory, but it makes sence with many domain
 classes.
 
 --- Gavin King [EMAIL PROTECTED] wrote:
 
  Juozas, I don't really understand what you are
 proposing here.
  
  What is a field interception based proxy?
  
  -Original Message-
  From: [EMAIL PROTECTED]
 
 [mailto:[EMAIL PROTECTED]
  On Behalf Of
  baliuka juozas
  Sent: Wednesday, 29 June 2005 9:30 AM
  To: hibernate-devel@lists.sourceforge.net
  Subject: [Hibernate] Field interception based
 proxies
  
  Hi,
  I am going to implement field interception based
 proxies, I will need 
  this stuff for projects with many classes (I see
 it can be implemnted 
  using custom persister), probably it makes sence
 to add this feature 
  for hibernate too if this is interesting for
 hibernate community.
  Implemetation must be trivial, but there is single
 problem with id 
  field name. I can asume this field name is always
 id, but if we are 
  going to make this stuff public then we need to
 find better way.
  
  __
  Do You Yahoo!?
  Tired of spam?  Yahoo! Mail has the best spam
 protection around 
  http://mail.yahoo.com
  
  
 

---
  SF.Net email is sponsored by: Discover Easy Linux
 Migration Strategies
 
  from IBM. Find simple to follow Roadmaps,
 straightforward articles, 
  informative Webcasts and more! Get everything you
 need to get up to 
  speed, fast.
 

http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click
  ___
  hibernate-devel mailing list
  hibernate-devel@lists.sourceforge.net
 

https://lists.sourceforge.net/lists/listinfo/hibernate-devel
  
  
 

---
  SF.Net email is sponsored by: Discover Easy Linux
 Migration Strategies
 
  from IBM. Find simple to follow Roadmaps,
 straightforward articles, 
  informative Webcasts and more! Get everything you
 need to get up to 
  speed, fast.
 
 http://ads.osdn.com/?ad_idt77alloc_id492op=click
  ___
  hibernate-devel mailing list
  hibernate-devel@lists.sourceforge.net
 

https://lists.sourceforge.net/lists/listinfo/hibernate-devel
  
 
 
 
   
 
 Yahoo! Sports
 Rekindle the Rivalries. Sign up for Fantasy Football
 http://football.fantasysports.yahoo.com
 




__ 
Yahoo! Mail 
Stay connected, organized, and protected. Take the tour: 
http://tour.mail.yahoo.com/mailtour.html 



---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77alloc_id492op=click
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


RE: [Hibernate] Annotation Documentation Example [Please]

2005-06-23 Thread Gavin King
@EmbeddableSuperclass 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Lane
Sharman
Sent: Thursday, 23 June 2005 1:18 AM
To: hibernate-devel@lists.sourceforge.net
Subject: [Hibernate] Annotation Documentation Example [Please]

Emmanuel,

I am developing a presentation to a couple of the JUGs in So Calif. I
hope to give them on Annotations with Hibernate.

Do you think you could present an example in your doc which suggests how
to approach an abstract base class and subclasses using Annotations,
http://www.hibernate.org/hib_docs/annotations/reference/en/html_single/
. There is not an example in the document of an abstract class with a
discussion about the working options for modeling an abstract class and
its subclasses using Annotations.

I believe there are some really powerful uses for ORM modeling with
Annotations and I want to cover as many of the use cases as I can think
of.

Also, it would be really nice if you could include a discussion at some
point in the future about data model/sets evolution synch'd to class
model evolution. Even a modest discussion about read/transform/write
within a hand-coded/generated Java class would be a good starting point.

Thank you kindly (et, milles remerciements pour vos travaux
exceptionels),

--
Lane Sharman
Providing Private and SPAM-Free Email
http://www.opendoors.com
858-755-2868



---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77alloc_id492op=click
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


RE: [Hibernate] Websphere 5.1 and Oracle 9x XA

2005-06-14 Thread Gavin King
Please do NOT post things like this to the dev list!

Thanks.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Shankar Srinivasan
Sent: Tuesday, 14 June 2005 2:32 PM
To: hibernate-devel@lists.sourceforge.net
Subject: [Hibernate] Websphere 5.1 and Oracle 9x XA

Hi,
  We are using hibernate to develop our application. Everything
seems to work fine when I run it on WebSphere and SQLServer. But I'm
getting the following exception when using the oracle datasource.

[6/14/05 11:17:56:417 PDT] 37074a26 MCWrapper E J2CA0081E: Method
cleanup failed while trying to execute method cleanup on
ManagedConnection
[EMAIL PROTECTED] from
resource PostXDB. Caught exception: com.ibm.ws.exception.WsException:
DSRA0080E: An exception was received by the Data Store Adapter. See
original exception message: Cannot call 'cleanup' on a
ManagedConnection while it is still in a transaction..

at
com.ibm.ws.rsadapter.exceptions.DataStoreAdapterException.init(DataSto
reAdapterException.java:217)
at
com.ibm.ws.rsadapter.exceptions.DataStoreAdapterException.init(DataSto
reAdapterException.java:171)
at
com.ibm.ws.rsadapter.AdapterUtil.createDataStoreAdapterException(Adapter
Util.java:209)
at
com.ibm.ws.rsadapter.spi.WSRdbManagedConnectionImpl.cleanupTransactions(
WSRdbManagedConnectionImpl.java:2613)
at
com.ibm.ws.rsadapter.spi.WSRdbManagedConnectionImpl.cleanup(WSRdbManaged
ConnectionImpl.java:2320)
at com.ibm.ejs.j2c.MCWrapper.cleanup(MCWrapper.java:1169)
at
com.ibm.ejs.j2c.poolmanager.FreePool.returnToFreePool(FreePool.java:326)
at
com.ibm.ejs.j2c.poolmanager.PoolManager.release(PoolManager.java:1275)
at
com.ibm.ejs.j2c.MCWrapper.releaseToPoolManager(MCWrapper.java:1678)
at
com.ibm.ejs.j2c.ConnectionEventListener.connectionClosed(ConnectionEvent
Listener.java:217)
at
com.ibm.ws.rsadapter.spi.WSRdbManagedConnectionImpl.processConnectionClo
sedEvent(WSRdbManagedConnectionImpl.java:1042)
at
com.ibm.ws.rsadapter.jdbc.WSJdbcConnection.closeWrapper(WSJdbcConnection
.java:561)
at
com.ibm.ws.rsadapter.jdbc.WSJdbcObject.close(WSJdbcObject.java:126)
at
com.postx.websphere.hibernate.WSDataSourceConnectionProvider.closeConnec
tion(WSDataSourceConnectionProvider.java:104)
at
net.sf.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:
103)
at
net.sf.hibernate.cfg.Configuration.buildSettings(Configuration.java:1160
)
at
net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.jav
a:794)
at
net.sf.hibernate.jmx.HibernateService.buildSessionFactory(HibernateServi
ce.java:163)
at
net.sf.hibernate.jmx.HibernateService.start(HibernateService.java:130)
at
com.postx.hibernate.PxHibernateService.start(PxHibernateService.java:142
)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:85)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:58)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:60)
at java.lang.reflect.Method.invoke(Method.java:391)
at
com.tivoli.jmx.DynamicMBeanSupport.invokeMethod(DynamicMBeanSupport.java
:242)
at
com.tivoli.jmx.DynamicMBeanSupport.invoke(DynamicMBeanSupport.java:166)
at
com.tivoli.jmx.GenericMBeanSupport.invoke(GenericMBeanSupport.java:178)
at com.tivoli.jmx.MBeanAccess.invoke(MBeanAccess.java:113)
at
com.tivoli.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:290)
at
com.postx.startup.ServiceLauncherThread.run(ServiceLauncherThread.java:2
69)

Let me know if you have run into a similar problem.

Thanks

Shankar


---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77alloc_id492op=ick
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77alloc_id492op=click
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


[Hibernate] Scope of Hibernate 3.1

2005-06-08 Thread Gavin King








Ive put some thought into the scope of work for
Hibernate 3.1. 

Heres what I came up with:




 Finish bulk update/delete, including,
 HHH-352
 Clean up tuple package and make
 it truly extensible
 Auto-detect {..} in queries,
 HHH-596
 Support {coll.key}, etc,
 TODO-109
 Support return-property
 in return-collection, HHH-381
 Support XML based named result
 set mappings, HHH-597
 Support joins in
 DetachedCriterias when used for subselecting
 Keep readonly entities in soft
 references TODO-162





 Maybe attribute-level query
 space granularity
 Maybe add bulk insert 
 select
 Maybe finish StatelessSession
 stuff for customer
 Maybe transform(), HHH-175




So there are three main broad areas here:




 native SQL enhancements
 bulk HQL functionality
 performance tuning for large
 sessions




Along with a couple of other small things.



Thoughts?








RE: [Hibernate] Enhanced filtering?

2005-06-08 Thread Gavin King
I am against changing the concept here. I think the original conception
is the only one that truly makes sense.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Steve
Ebersole
Sent: Wednesday, 8 June 2005 10:36 AM
To: Emmanuel Bernard; hibernate-devel@lists.sourceforge.net
Subject: RE: [Hibernate] Enhanced filtering?

We were just talking about the delete use case last night in relation to
bulk deletes.  I think it really comes down to how we want to
conceptualize the filters.  Initially they were envisioned solely as a
mechanism for filtering returned data.  What we are talking about here
is a serious expansion on that original conceptualization with serious
ramifications in terms of caching.

The one that is really difficult is the get/load scenario, as that then
supposes extension out to to-one associations. 

Not sure how a filter (where condition) would even play into an
insert...

Even with deletes though, I can see what you are saying if the filters
are security-based, but what if the filters are temporal.  Do we really
want to limit the deleted rows there?

At any rate, I'd prefer instead that this kind of stuff were handled
through the events like the JACC stuff does.

-1

My $.02


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Emmanuel Bernard
Sent: Wednesday, June 08, 2005 7:26 AM
To: hibernate-devel@lists.sourceforge.net
Subject: [Hibernate] Enhanced filtering?

I get some feedbacks from users using filters. Some of them seems to be 
*keen on* enhancing the filter capability to all session operations
 - load/get
 - save/update
 - delete

It makes sense for permissioned data as a global filtering. The thing is

that it needs to lower Hibernate capability (workaround update counts 
breaking etc, versioning issue). What do you guys think of that?



---
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you
shotput
a projector? How fast can you ride your desk chair down the office luge
track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61 plasma display: http://www.necitguy.com/?r=20
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


---
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you
shotput
a projector? How fast can you ride your desk chair down the office luge
track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61 plasma display: http://www.necitguy.com/?r 
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


---
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.
Play to win an NEC 61 plasma display: http://www.necitguy.com/?r 
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


RE: [Hibernate] Scope of Hibernate 3.1

2005-06-08 Thread Gavin King
As you all know, I am still just not sold on this.

-Original Message-
From: Max Andersen 
Sent: Wednesday, 8 June 2005 3:15 PM
To: Gavin King; hibernate-devel@lists.sourceforge.net
Subject: Re: [Hibernate] Scope of Hibernate 3.1


Adding the ResultTransformer or similar to native sql and hql  
(http://opensource.atlassian.com/projects/hibernate/browse/HHH-587)

Would complete the query result and entitymode possibilites.

-max

 I've put some thought into the scope of work for Hibernate 3.1.

 Here's what I came up with:


 * Finish bulk update/delete, including, HHH-352
 * Clean up tuple package and make it truly extensible
 * Auto-detect {..} in queries, HHH-596
 * Support {coll.key}, etc, TODO-109
 * Support return-property in return-collection, HHH-381
 * Support XML based named result set mappings, HHH-597
 * Support joins in DetachedCriterias when used for subselecting
 * Keep readonly entities in soft references TODO-162


 * Maybe attribute-level query space granularity
 * Maybe add bulk insert ... select
 * Maybe finish StatelessSession stuff for customer
 * Maybe transform(), HHH-175


 So there are three main broad areas here:


 * native SQL enhancements
 * bulk HQL functionality
 * performance tuning for large sessions


 Along with a couple of other small things.


 Thoughts?





---
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.
Play to win an NEC 61 plasma display: http://www.necitguy.com/?r 
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


[Hibernate] We are still looking for US-based consultants

2005-06-07 Thread Gavin King








I cant believe we have been unable to hire someone! 



JBoss is losing money right now because we are having
trouble keeping up with hibernate business in the US.



If you are interested, please email me at
[EMAIL PROTECTED]








RE: [Hibernate] Hibernate and EMF integration

2005-06-04 Thread Gavin King








Hi Mike,



Im not aware of any other effort to
do this. It should be straightforward, however, given the architecture of HB3.



Gavin











From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mike Kanaley
Sent: Friday, 3 June 2005 9:35 PM
To:
hibernate-devel@lists.sourceforge.net
Subject: [Hibernate] Hibernate and
EMF integration





Unfortunately, there are integration problems when trying to
persist Eclipse EMF objects with Hibernate.



A model architect uses an EMF class diagram (much like a UML
class diagram) to model the data in the application.

From this diagram, EObjects are generated. EObjects are
EMFs form of POJOs.

EObjects are more complex than POJOs  they actually
know about the model and support lazy loaded collections built into the
generated objects.



Why not just use POJOs with Eclipse?

Eclipse provides a framework on top of EMF that provides:

-
XMI serialization

-
Generated code based on EMF to
support refactoring

-
Cross-file reference resolution when
serializing out a model to multiple files in a file system.

-
Out of the box Eclipse editors for EMF
objects (not that important since we are unlikely to ship these basic editors).



I wont go into the details of integration issues in
this email message. A short summary are:

- UserCollectionType instances cannot be instantiated with
knowledge of the owning instance.

- EMF EObjects only support get methods for all collections.
All collections are represented by an EList in EMF.

- EMFs lazy loading needs to delegate to
Hibernates lazy loading



Small modifications to Hibernate are required to implement
this support (as well as PropertyAccessor and UserCollectionType extensions).



TIBCO is not alone in this search as indicated in the thread
below where someone has this working with JDO.

http://www.jpox.org/servlet/forum/viewthread?thread=1802

However, TIBCO does not want to use a proprietary ORM
library and we would rather use Hibernate than JDO.

TIBCO wants to have an open source solution to this problem which
is why we are approaching you. 



Are you aware of others trying to integrate Hibernate and
EMF?

TIBCO will provide the implementation resources but would
like a Hibernate team liaison

to review the design with a long term goal of having
Hibernate support this functionality.



Thanks for your time,

Michael Kanaley

Principal Architect

TIBCO Software Inc.










RE: [Hibernate] Repeated attribute in the docs.

2005-05-25 Thread Gavin King
Thanks, fixed

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Ricardo Moral
Sent: Wednesday, 25 May 2005 9:01 AM
To: Hibernate devel
Subject: [Hibernate] Repeated attribute in the docs.

Just one comment to the person in charge of the documentation:

On the documentation page:

http://www.hibernate.org/hib_docs/v3/reference/en/html/mapping.html#mapp
ing-declaration-class

The 'entity-name' attribute is repeated twice (17 and 22).

regards.


---
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=fad-ysdn-ostg-q22005
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


---
SF.Net email is sponsored by: GoToMeeting - the easiest way to collaborate
online with coworkers and clients while avoiding the high cost of travel and
communications. There is no equipment to buy and you can meet as often as
you want. Try it free.http://ads.osdn.com/?ad_idt02alloc_id135op=click
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


[Hibernate] 3.0.5 is out

2005-05-24 Thread Gavin King








Check out the new natural-key lookup enhancement J



Christian, I did a bunch of work on the docs, can you update
the website?



Thanks.








RE: [Hibernate] jira dashboard broken ?

2005-05-22 Thread Gavin King
NO, not just you :(

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Max
Rydahl Andersen
Sent: Sunday, 22 May 2005 11:41 AM
To: Hibernate devel
Subject: [Hibernate] jira dashboard broken ?

Is it only my JIRA dashboard that is broken and empty ?

-max


---
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412alloc_id=16344op=click
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


---
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_idt12alloc_id344op=click
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


RE: [Hibernate] DocExporter

2005-05-22 Thread Gavin King
Very, very cool. Is this something we can also integrate into the
eclipse plugin? Like, provide a browser for it?

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Max
Rydahl Andersen
Sent: Sunday, 22 May 2005 3:40 PM
To: Hibernate devel
Cc: [EMAIL PROTECTED]
Subject: [Hibernate] DocExporter

Hi Ricardo et.al,

Sending this to the devel list for all interested to get up to speed
with  
it.

Ricardo have worked on a DocExporter which takes a Hibernate
configuration  
and generate javadoc style schema docs.

A sample output for CaveatEmptor is shown here:  
http://www.hibernate.org/~max/output/

Its still a work in progress, but I think the current work is already  
usable and I have integrated code
and also made a hbm2doc ant task for it. Thank you Ricardo!

Small comments mostly for Ricardo:

org.hibernate.tool.doc is now org.hibernate.tool.hbm2x.doc and
DocExporter  
is in org.hibernate.tool.hbm2x together
with all the other exporters.
There were some IConfiurationFactory which were not used except in a  
main() so I removed it.
Otherwise the code is at is was when you gave it to me.

/max


---
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412alloc_id=16344op=click
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


---
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_idt12alloc_id344op=click
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


RE: [Hibernate] DocExporter

2005-05-22 Thread Gavin King
No, I just mean hitting generate docs and being taken to a browser
window open at the generated docs.

-Original Message-
From: Max Andersen 
Sent: Sunday, 22 May 2005 4:04 PM
To: Gavin King; Hibernate devel
Cc: [EMAIL PROTECTED]
Subject: Re: [Hibernate] DocExporter

On Sun, 22 May 2005 21:56:22 +0200, Gavin King [EMAIL PROTECTED]  
wrote:

 Very, very cool. Is this something we can also integrate into the
 eclipse plugin? Like, provide a browser for it?

Depends what you mean.

I'm right now working this into the plugin so you can generate it via
the  
artifact wizard.

If you by browser mean just normal html browsing, then yes - that is  
provided default by eclipse.

If you mean browsing this live in the configuration tree then its a  
feature request (but
with the docexporter came some nice code that made this stuff easer)

/max


 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Max
 Rydahl Andersen
 Sent: Sunday, 22 May 2005 3:40 PM
 To: Hibernate devel
 Cc: [EMAIL PROTECTED]
 Subject: [Hibernate] DocExporter

 Hi Ricardo et.al,

 Sending this to the devel list for all interested to get up to speed
 with
 it.

 Ricardo have worked on a DocExporter which takes a Hibernate
 configuration
 and generate javadoc style schema docs.

 A sample output for CaveatEmptor is shown here:
 http://www.hibernate.org/~max/output/

 Its still a work in progress, but I think the current work is already
 usable and I have integrated code
 and also made a hbm2doc ant task for it. Thank you Ricardo!

 Small comments mostly for Ricardo:

 org.hibernate.tool.doc is now org.hibernate.tool.hbm2x.doc and
 DocExporter
 is in org.hibernate.tool.hbm2x together
 with all the other exporters.
 There were some IConfiurationFactory which were not used except in a
 main() so I removed it.
 Otherwise the code is at is was when you gave it to me.

 /max


 ---
 This SF.Net email is sponsored by Oracle Space Sweepstakes
 Want to be the first software developer in space?
 Enter now for the Oracle Space Sweepstakes!
 http://ads.osdn.com/?ad_id=7412alloc_id=16344op=click
 ___
 hibernate-devel mailing list
 hibernate-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/hibernate-devel




---
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_idt12alloc_id344op=click
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


[Hibernate] commentI added a new feature/comment

2005-05-22 Thread Gavin King








Ive added support for generation of schema-level
comments via adding comment blocks to the mapping document. This is
kinda nice, but I would not have really bothered doing it except that I saw
some really nice synergies with other components of the toolset.



For example:




 the new DocExporter tool can include
 comments in the html
 hbm2java can include the
 comments in the JavaDoc
 jdbc binder can pull the
 comments from the DatabaseMetadata, producing nicely-documented mapping
 files
 the eclipse visualization
 plugin can display comments as tooltips
 









[Hibernate] join fetching multiple collection roles

2005-05-16 Thread Gavin King








I removed the ancient limitation. One of those things that was
really quite easy once I actually sat down and tried to do it.



So you can now do:



 from Item it join fetch it.bids join fetch it.comments



and stuff like that.





Just dont try to use this feature with bags (for
obvious reasons).








[Hibernate] 3.0.4

2005-05-16 Thread Gavin King








Well need to do a 3.0.4 release, probably this week
to get my fixes to subselect fetching, and enhancements to join fetching out
there.



Steve, do you have anything in the pipeline that should go
in?








RE: [Hibernate] join fetching multiple collection roles

2005-05-16 Thread Gavin King








I might have been a little premature in
announcing this:



 http://opensource.atlassian.com/projects/hibernate/browse/HHH-486



is a pretty big bug in it. Ill need
to fix that before we can release.











From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Gavin King
Sent: Monday, 16 May 2005 2:02 AM
To: hibernate-devel@lists.sourceforge.net
Subject: [Hibernate] join fetching
multiple collection roles





I removed the ancient limitation. One of those things that
was really quite easy once I actually sat down and tried to do it.



So you can now do:



 from Item it join fetch it.bids join fetch
it.comments



and stuff like that.





Just dont try to use this feature with bags (for
obvious reasons).








RE: [Hibernate] 3.0.4

2005-05-16 Thread Gavin King
OK, great

-Original Message-
From: Emmanuel Bernard [mailto:[EMAIL PROTECTED] 
Sent: Monday, 16 May 2005 7:52 PM
To: Gavin King
Cc: hibernate-devel@lists.sourceforge.net
Subject: Re: [Hibernate] 3.0.4

I need to add some stuffs in the core to enable createNAtiveQuery(String

sql, String resultSetMapping). Will do tomorrow.

Gavin King wrote:

 We'll need to do a 3.0.4 release, probably this week to get my fixes 
 to subselect fetching, and enhancements to join fetching out there.

 Steve, do you have anything in the pipeline that should go in?






---
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_idt12alloc_id344op=click
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


RE: [Hibernate] Caching of collections

2005-05-13 Thread Gavin King








OK, but you do realize that this is the
Hibernate development mailing list, not the JavaRanch beginner forum, right?



We already know all about concurrent.jar.
;-)











From: Lane Sharman [mailto:[EMAIL PROTECTED]]

Sent: Thursday, 12 May 2005 1:34
AM
To: Gavin King
Cc:
hibernate-devel@lists.sourceforge.net
Subject: Re: [Hibernate] Caching
of collections





You stated there are some subtle concurrency
issues and that was what I keyed off on. I observed that we found Doug
Lea's code extremely helpful in dealing with concurrency issues between a
memory image and a persistent image across multiple threads.

Since apparently this does not apply, I will not make suggestions like this in
the future.

Lane

Gavin King wrote:



Huh??What in hell does Java thread-level concurrency have to do withmaintaining consistency between a database and second-level cache???-Original Message-From: [EMAIL PROTECTED][mailto:[EMAIL PROTECTED]] On Behalf Of LaneSharmanSent: Tuesday, 10 May 2005 6:42 PMTo: hibernate-devel@lists.sourceforge.netSubject: Re: [Hibernate] Caching of collectionsthe webmacro team (http://www.webmacro.org) struggled with many concurrency issues in its rendering engine several years ago.after much tribulation, we decided on using Doug Lea's conncurrent.jar. It solved some amazing issues with the java memory model and was vetted by some really smart people.just an idea, resource.-LaneGavin King wrote: 

Yes, there are some subtle concurrency issues.-Original Message-From: [EMAIL PROTECTED][mailto:[EMAIL PROTECTED]] On Behalf OfEmmanuel BernardSent: Monday, 9 May 2005 4:52 AMTo: hibernate-devel@lists.sourceforge.netSubject: [Hibernate] Caching of collectionsI noticed that we don't put the collection in cache when creating anobjectieitem.addDistributors( new HashSet() );session.persist(item);item will be in put in cache, but not item.distributors.Any reason for not doing that?---This SF.Net email is sponsored by: NEC IT Guy Games.Get your fingers limbered up and give it your best shot. 4 great 

events, 

4opportunities to win big! Highest score wins.NEC IT Guy Games. Play towin an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20___hibernate-devel mailing listhibernate-devel@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/hibernate-devel---This SF.Net email is sponsored by Oracle Space SweepstakesWant to be the first software developer in space?Enter now for the Oracle Space Sweepstakes!http://ads.osdn.com/?ad_ids93alloc_id281op=click___hibernate-devel mailing listhibernate-devel@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/hibernate-devel  

 





-- Lane SharmanProviding Private and SPAM-Free Emailhttp://www.opendoors.com858-755-2868






RE: [Hibernate] Caching of collections

2005-05-10 Thread Gavin King
Yes, there are some subtle concurrency issues.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Emmanuel Bernard
Sent: Monday, 9 May 2005 4:52 AM
To: hibernate-devel@lists.sourceforge.net
Subject: [Hibernate] Caching of collections

I noticed that we don't put the collection in cache when creating an
object
ie
item.addDistributors( new HashSet() );
session.persist(item);

item will be in put in cache, but not item.distributors.
Any reason for not doing that?





---
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events,
4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


---
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_ids93alloc_id281op=click
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


RE: [Hibernate] New laziness rules

2005-05-02 Thread Gavin King
Yes, you're misunderstanding.

If I say lazy=false, it should *always* be eager fetched.

There's nothing wrong with fetch=join lazy=true if you want
flexibility.

-Original Message-
From: Max Andersen 
Sent: Monday, 2 May 2005 5:48 PM
To: Gavin King; Christian Bauer; hibernate-devel@lists.sourceforge.net
Subject: Re: [Hibernate] New laziness rules


 Note that the association-level lazy setting is now *completely
 respected*. if I run a HQL query and some of the objects in the
result

 set have non-lazy associations, those associations will be
 *immediately fetched*.

This one I don't get why we want that ?
I actually saw it as a strength that you via the HQL language could
override what the static mapping specifiedor am i misunderstanding  
this ?

-- 
--
Max Rydahl Andersen
callto://max.rydahl.andersen

Hibernate
[EMAIL PROTECTED]
http://hibernate.org

JBoss Inc
[EMAIL PROTECTED]
http://jboss.com


---
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r 
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


RE: [Hibernate] New laziness rules

2005-04-29 Thread Gavin King
OK, I ditched rule (2).

Now they are completely orthogonal.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Christian Bauer
Sent: Thursday, 28 April 2005 3:16 PM
To: hibernate-devel@lists.sourceforge.net
hibernate-devel@lists.sourceforge.net
Subject: Re: [Hibernate] New laziness rules


On Apr 28, 2005, at 7:26 PM, Gavin King wrote:

 Only rule (2) is suspect. We don't need it, and I can get rid of it if

 you guys like. I've added it because I think it might help reduce the 
 number of forum questions from people who wonder why do I get lazy 
 fetching when fetch=join?.

Not following the forums much, is that really a problem?

 Note that the association-level lazy setting is now *completely 
 respected*. if I run a HQL query and some of the objects in the result

 set have non-lazy associations, those associations will be 
 *immediately fetched*.

Major change, has to be announced on homepage for 3.0.3 release.



---
SF.Net email is sponsored by: Tell us your software development plans!
Take this survey and enter to win a one-year sub to SourceForge.net
Plus IDC's 2005 look-ahead and a copy of this survey
Click here to start!  http://www.idcswdc.com/cgi-bin/survey?id5hix
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


---
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r 
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


[Hibernate] New laziness rules

2005-04-28 Thread Gavin King








As you guys probably know, I have been doing a lot of
thinking about how to orthogonalize the notion of eager/lazy from the notion of
fetch strategy (the actual SQL). And I want to do this in a way which allows a
good implementation of EJB3 fetching contract, and remains reasonably
compatible with what we have today. Oh, and I want to also try and reduce the
number of newbie forum posts.



The basic concept is that association mappings have both:




 fetch attribute
 lazy attribute




For single-valued associations:




 fetch = select|join
 lazy = true|false|proxy




where lazy = true means use instvar
interception, and lazy = proxy means use the proxy of the
associated class (if it has one).



For collection-valued associations:




 fetch = select|join|subselect
 lazy = true|false




where lazy = true is the usual lazy collection
fetching we know and love (or hate).



For the second join of a many-to-many




 fetch = select|join
 lazy = false|proxy




Note that this is a special case, since fetch = join
is the default!



So, here are the new rules:



(1) if lazy is
specified, use the specified laziness semantics

(2) if lazy is
not specified and fetch = join, assume lazy = false

(3) if lazy is
not specified and not fetch = join

a. for
collections, assume the default-lazy (almost always true)

b. for
single-valued associations, assume proxy



Only rule (2) is suspect. We dont need it, and I can
get rid of it if you guys like. Ive added it because I think it might
help reduce the number of forum questions from people who wonder why do
I get lazy fetching when fetch=join?.



Note that the association-level lazy setting is now *completely respected*. if I run a HQL query
and some of the objects in the result set have non-lazy associations, those
associations will be *immediately fetched*.












RE: [Hibernate] connect by

2005-04-27 Thread Gavin King
yes, its easy enough, I guess...

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Emmanuel Bernard
Sent: Wednesday, 27 April 2005 1:50 AM
To: hibernate-devel
Subject: Re: [Hibernate] connect by

Not keen. With native SQL you can achieve these specific cases, right?

Gavin King wrote:

 Should we support START WITH ... CONNECT BY in HQL (just for Oracle
users)?

 It's trivial to implement I guess, what do you guys think?


-- 
Emmanuel Bernard
[EMAIL PROTECTED]
callto://emmanuelbernard

http://www.hibernate.org





---
SF.Net email is sponsored by: Tell us your software development plans!
Take this survey and enter to win a one-year sub to SourceForge.net
Plus IDC's 2005 look-ahead and a copy of this survey
Click here to start!  http://www.idcswdc.com/cgi-bin/survey?id=105hix
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


---
SF.Net email is sponsored by: Tell us your software development plans!
Take this survey and enter to win a one-year sub to SourceForge.net
Plus IDC's 2005 look-ahead and a copy of this survey
Click here to start!  http://www.idcswdc.com/cgi-bin/survey?id5hix
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


RE: [Hibernate] Quoted schema names...

2005-04-26 Thread Gavin King
I don't think so.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Emmanuel Bernard
Sent: Monday, 25 April 2005 1:58 AM
To: hibernate-devel@lists.sourceforge.net
Subject: Re: [Hibernate] Quoted schema names...

Didn't we have some trouble in 2.1.7 with a similar patch?

Aleksandar Vidakovic wrote:

Salut all,

I had problems with schemas containing a dash in the name. SchemaExport
fails e. g. with a schema name like component-security on postgresql
(I'm sure that this is an issue on other DB systems, too). When I
looked
into hibernates source I saw that table names can be quoted with
backticks, but schema names cannot. Is there a reason for this
behaviour...? I admit that I'm new to hibernate... at least concerning
it's source code ;-)

Attached you can find a little patch for the class
org.hibernate.mapping.Table which recognizes quoted schemas.

Cheers,

Aleks
  

---
-

Index: Table.java
===
RCS file:
/cvsroot/hibernate/Hibernate3/src/org/hibernate/mapping/Table.java,v
retrieving revision 1.33
diff -u -r1.33 Table.java
--- Table.java 11 Apr 2005 12:40:40 -  1.33
+++ Table.java 23 Apr 2005 15:04:44 -
@@ -38,6 +38,7 @@
   private Map uniqueKeys = new HashMap();
   private final int uniqueInteger;
   private boolean quoted;
+  private boolean quotedSchema;
   private static int tableCounter = 0;
   private List checkConstraints = new ArrayList();
   private String rowId;
@@ -78,7 +79,7 @@
   public String getQualifiedName(Dialect dialect, String
defaultCatalog, String defaultSchema) {
   if ( subselect != null ) return (  + subselect +  );
   String quotedName = getQuotedName( dialect );
-  String usedSchema = schema == null ? defaultSchema :
schema;
+  String usedSchema = schema == null ? defaultSchema :
getQuotedSchema( dialect );
   String usedCatalog = catalog == null ? defaultCatalog :
catalog;
   return Table.qualify( usedCatalog, usedSchema,
quotedName, dialect.getSchemaSeparator() );
   }
@@ -109,6 +110,12 @@
   name;
   }
 
+  public String getQuotedSchema(Dialect dialect) {
+  return quotedSchema ?
+  dialect.openQuote() + schema +
dialect.closeQuote() :
+  schema;
+  }
+
   public void setName(String name) {
   if ( name.charAt( 0 ) == '`' ) {
   quoted = true;
@@ -435,7 +442,13 @@
   }
 
   public void setSchema(String schema) {
-  this.schema = schema;
+  if ( schema.charAt( 0 ) == '`' ) {
+  quotedSchema = true;
+  this.schema = schema.substring( 1,
schema.length() - 1 );
+  }
+  else {
+  this.schema = schema;
+  }
   }
 
   public String getCatalog() {
  


-- 
Emmanuel Bernard
[EMAIL PROTECTED]
callto://emmanuelbernard

http://www.hibernate.org



---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95alloc_id396op=click
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


[Hibernate] connect by

2005-04-26 Thread Gavin King








Should we support START WITH  CONNECT BY in HQL (just
for Oracle users)?



Its trivial to implement I guess, what do you guys
think?








[Hibernate] Just saw some commits from Steve...

2005-04-25 Thread Gavin King








does that mean we can do 3.0.2 tonight / tomorrow?








RE: [Hibernate] Just saw some commits from Steve...

2005-04-25 Thread Gavin King
Lots of bugfixes.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Christian Bauer
Sent: Monday, 25 April 2005 9:58 AM
To: hibernate-devel@lists.sourceforge.net
hibernate-devel@lists.sourceforge.net
Subject: Re: [Hibernate] Just saw some commits from Steve...


Whats so important in 3.0.2?



---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95alloc_id396op=ick
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95alloc_id396op=click
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


RE: [Hibernate] 3.0.2

2005-04-23 Thread Gavin King
OK, we will shoot for early next week.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Christian Bauer
Sent: Saturday, 23 April 2005 6:55 AM
To: hibernate-devel@lists.sourceforge.net
hibernate-devel@lists.sourceforge.net
Subject: Re: [Hibernate] 3.0.2


On Apr 23, 2005, at 7:54 AM, Gavin King wrote:

 Are we good for a 3.0.2 release this weekend?

Nope, have to finish new tutorial.



---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95alloc_id396op=click
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


[Hibernate] 3.0.2

2005-04-23 Thread Gavin King








Are we good for a 3.0.2 release this weekend?



Steve. are you ready?



Who wants to do the build?








RE: [Hibernate] many-to-many filters

2005-04-20 Thread Gavin King
The thing you need to think about is a many-to-many to a joined
subclass.

I *think* that this causes a join to the subclass table, in which case
you could *not* apply the entity filter.

So you would need collection-specific filters.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Steve
Ebersole
Sent: Wednesday, 20 April 2005 1:49 PM
To: hibernate-devel@lists.sourceforge.net
Subject: [Hibernate] many-to-many filters

So I've been looking and thinking about this ability to define filter
conditions on many-to-many/ such that they apply to the associated
table (not the just association table, which is what we have now).  So
the current thinking here is to allow another filter/ within the
many-to-many/; something like:

set ...
key.../
many-to-many...
filter.../ !-- applies to the associated entity table --
/many-to-many
filter.../ !-- applies to the association table --
/set

This actually brought up to my mind an older discussion regarding the
ability to define that filters defined on an entity should apply to
collections in which it is the element.  One way to solve both of these
would be something like:

set...
key.../
many-to-many.../ !-- or one-to-many --
filter.../
apply-entity-filters/
/set

In this approach you'd lose a little bit of the ability to control which
filters applied to the collection from the entity definition, but I
guess I'm asking whether that is really such a bad thing.  Also, the
semantics of filter/s nested under the various collections would still
be slightly different between one-to-many/ and many-to-many/.  Or do
we need the capability to do both?  

Note that use of apply-entity-filters/ solely would still not resolve
the need to be able to define where criteria on the many-to-many
associated table (i.e. many-to-many where=.../)...


---
This SF.Net email is sponsored by: New Crystal Reports XI.
Version 11 adds new functionality designed to reduce time involved in
creating, integrating, and deploying reporting solutions. Free runtime
info,
new features, or free trial, at:
http://www.businessobjects.com/devxi/728
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


---
This SF.Net email is sponsored by: New Crystal Reports XI.
Version 11 adds new functionality designed to reduce time involved in
creating, integrating, and deploying reporting solutions. Free runtime info,
new features, or free trial, at: http://www.businessobjects.com/devxi/728
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


RE: [Hibernate] date for 3.0.1 ?

2005-04-13 Thread Gavin King
This weekend.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Max
Rydahl Andersen
Sent: Wednesday, 13 April 2005 7:41 AM
To: Hibernate development
Subject: [Hibernate] date for 3.0.1 ?

Hi guys,

any planned date for 3.0.1 ?

I got some minor additions to the core that I would like to add  
(MetaAttributable).
And if 3.0.1 is not planned to be released soon (within a week) i'll
need  
to hold changes
in the toolset back as otherwise the next tool release will not work
with  
the latest release of hibernate...

-- 
--
Max Rydahl Andersen
callto://max.rydahl.andersen

Hibernate
[EMAIL PROTECTED]
http://hibernate.org

JBoss Inc
[EMAIL PROTECTED]
http://jboss.com


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95alloc_id396op=click
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


[Hibernate] DAO generation templates

2005-04-05 Thread Gavin King








Id really like to add DAO generation to hbm2java. All
we need is a simple template that



(1) creates
typesafe versions of persist(), merge(), delete(), etc

(2) searches for
relevant named queries and created findX() methods



Ill spend some time on this tonight, perhaps, but Im
wondering about the best way to do (2). 



Max, where should I get access to defined named queries
from?



Also, do we have meta for named queries yet? We need
this.








RE: [Hibernate] New HQL features in CVS

2005-04-04 Thread Gavin King
 map creation from specified key and value columns (either key,value
or
aliased)

-1, I don't see this as a general need; you can always use a criteria
query with a resultTransformer (I'm currently resisting the idea of
adding ResultTransformer to the HQL facility).


 plugable loaders

Well, between custom persisters, CustomQuery and the new loader
query-ref 
stuff, there is already an enormous amount of flexibility here. It would
take a lot to convince me that there is some case that can't be handled.


 JavaBean construction from aliased properties

yes, this is on my TODO list. It is straightforward. Patches are very
welcome.



---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95alloc_id396op=click
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


[Hibernate] 3.0 final today?

2005-03-31 Thread Gavin King
Anyone got any objection to building and releasing today?
I think we are done...
--
Gavin King
+61 410 534 454
+1 404 822 8349
callto://gavinking
Hibernate
[EMAIL PROTECTED]
http://hibernate.org
JBoss Inc
[EMAIL PROTECTED]
http://jboss.com

---
This SF.net email is sponsored by Demarc:
A global provider of Threat Management Solutions.
Download our HomeAdmin security software for free today!
http://www.demarc.com/info/Sentarus/hamr30
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


[Hibernate] 2.1 million pageviews in March

2005-03-31 Thread Gavin King
For the first time, hibernate.org passed 2 million pageviews in a month. 
Pretty cool, huh?

--
Gavin King
+61 410 534 454
+1 404 822 8349
callto://gavinking
Hibernate
[EMAIL PROTECTED]
http://hibernate.org
JBoss Inc
[EMAIL PROTECTED]
http://jboss.com

---
This SF.net email is sponsored by Demarc:
A global provider of Threat Management Solutions.
Download our HomeAdmin security software for free today!
http://www.demarc.com/info/Sentarus/hamr30
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


[Hibernate] HQL 3.1

2005-03-28 Thread Gavin King
One of the main reasons we migrated to the new query parser was to allow 
for easier extension of HQL. We didn't actually make much in the way of 
HQL extensions in 3.0 (except for UPDATE/DELETE, CASE and EJB-QL 
functions). I've been wondering what new cool stuff we could consider 
for 3.1.

First, we need to add a way to add extra conditions to outer joins. Eg:
  from Order ord
 left join ord.lines line on line.deleted is false
  where ...
But perhaps on is the wrong keyword, since it is an extra join 
condition. Perhaps filter by?

  from Order ord
 left join ord.lines line filter by line.deleted is false
  where ...
I'm not sure.
Next, it's about time we had a reliable instanceof operator:
  from Payment p
  where p instanceof Cheque
 or 
Next, I'm considering adding more query-level control over fetching 
strategies

  from Order ord
 subselect fetch ord.lines
  from Order ord
 select fetch ord.lines
  from Order ord
 batch fetch ord.lines
  from Order ord
 batch size 10 fetch ord.lines
Finally, we need to grapple with the problem of supporting expressions 
in the select clause.

Do you think we could and should support the ANSI SQL style periods and 
temporal operators (overlaps, during, before, after, etc.) in a portable 
way?

  from Contract c where [c.effectiveStartDate, c.effectiveEndDate] 
overlaps (:start, :end]

(Unfortunately, Java has no Period or Interval class that we could 
create a standard Hibernate Type for.)

Any other ideas?
--
Gavin King
+61 410 534 454
+1 404 822 8349
callto://gavinking
Hibernate
[EMAIL PROTECTED]
http://hibernate.org
JBoss Inc
[EMAIL PROTECTED]
http://jboss.com

---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


[Hibernate] property lazy=.../

2005-03-08 Thread Gavin King
I think we made a big mistake by re-using the word lazy for 
attribute-level lazy fetching. People think that many-to-one 
lazy=false/ will disable proxying.

Does anyone know another term we could use?
--
Gavin King
+61 410 534 454
+1 404 822 8349
callto://gavinking
Hibernate
[EMAIL PROTECTED]
http://hibernate.org
JBoss Inc
[EMAIL PROTECTED]
http://jboss.com

---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95alloc_id396op=click
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


[Hibernate] reusing joins in FromClause

2005-03-06 Thread Gavin King
Joshua, is there any reason why FromClause defined both: 
implicitJoinFromElementsByPath
and explicitJoinFromElementsByPath? The old parser used to re-use any 
duplicated join,
and when I replace the two collections with a single collection, 
everything seems to
work (better than before).

Anyway, I will commit that change, since it helps, and doesn't seem to 
hurt...

--
Gavin King
+61 410 534 454
+1 404 822 8349
callto://gavinking
Hibernate
[EMAIL PROTECTED]
http://hibernate.org
JBoss Inc
[EMAIL PROTECTED]
http://jboss.com

---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


[Hibernate] TODO List

2005-03-06 Thread Gavin King
I'm happy that we can release 3.0final early next week. (Perhaps even 
Monday.)

I have the following high-priority issues in the core, none of which are 
truly necessary to go final, its fine if they pop up in 3.0.1 or 3.0.2:

* stored procedure support for querying TODO-174
* many-to-many filter conditions TODO-129
* collection properties in native SQL strings TODO-109
* fix new parser for theta-style outerjoins HHH-184
* finish bulk update/delete TODO-92
* transform() method TODO-175
* WebSphere TM problems HB-1354
* EJB3 SQL queries TODO-172
* EJB3-style composite keys TODO-170
In addition, we agreed that we would target the following new stuff for Q2:
* Resolve JBossCache concurrency issues
* Deliver standalone EJB3 EntityManager
* Eclipse-based monitoring GUI
* Hibernate3 har deployer with declarative long persistence contexts,
 to run in new JBoss microcontainer
I'm pretty sure that we won't have a chance to get all those things 
delived in Q2, but I'd like at least 2 out of the 4.

Cheers,
Gavin
--
Gavin King
+61 410 534 454
+1 404 822 8349
callto://gavinking
Hibernate
[EMAIL PROTECTED]
http://hibernate.org
JBoss Inc
[EMAIL PROTECTED]
http://jboss.com

---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


  1   2   3   4   5   6   >