[Hibernate] Set x Nag

2003-10-27 Thread Miguel Henley

Hi,

It's not clear to me the difference between the XML  element and the XML  
element at the hibernate mappings file.
Can someone explain me that ?


Regards,

Miguel.


---
This SF.net email is sponsored by: The SF.net Donation Program.
Do you like what SourceForge.net is doing for the Open
Source Community?  Make a contribution, and help us add new
features and functionality. Click here: http://sourceforge.net/donate/
___
hibernate-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


Re: [Hibernate] Set x Nag

2003-10-27 Thread Christian Bauer
On 27 Oct (09:12), Miguel Henley wrote:

> It's not clear to me the difference between the XML  element and the XML  
> element at the hibernate mappings file.
> Can someone explain me that ?

Please read the documentation.

-- 
Christian Bauer
[EMAIL PROTECTED]


---
This SF.net email is sponsored by: The SF.net Donation Program.
Do you like what SourceForge.net is doing for the Open
Source Community?  Make a contribution, and help us add new
features and functionality. Click here: http://sourceforge.net/donate/
___
hibernate-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


[Hibernate] Session problem

2003-10-27 Thread Nikolay Ganev
hi guys,

i have 2 q:

1. I can get and set Interceptor for Configuration(which is common for the
sesion Factory). Now I need to get Interceptor for a session, but there
is no method getInteresptor to get the Interceptor for a given
Session! How can i get the Interceptor for a session?

2. I want to extend SessionImpl class in order to add 2 methods.
I recompiled the source for SessionImpl(because it is final) and everything is OK, BUT 
when
I tried to extend the SessionImpl class there are the following
strange errors:

"CosmosSessionImpl.java": cannot resolve symbol: constructor SessionImpl ()in class 
net.sf.hibernate.impl.SessionImpl at line 35, column 1
"CosmosSessionImpl.java": Object() in java.lang.Object is not defined in a public 
class or interface; cannot be accessed from outside package at line 35, column 1

  

-- 
Best regards,
 Nikolay  mailto:[EMAIL PROTECTED]




---
This SF.net email is sponsored by: The SF.net Donation Program.
Do you like what SourceForge.net is doing for the Open
Source Community?  Make a contribution, and help us add new
features and functionality. Click here: http://sourceforge.net/donate/
___
hibernate-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


[Hibernate] New method proposal for session

2003-10-27 Thread Matt Dowell
Would anyone else use this?

session.delete(Class class, Object ID)


Matt Dowell
Notiva Corp.


---
This SF.net email is sponsored by: The SF.net Donation Program.
Do you like what SourceForge.net is doing for the Open
Source Community?  Make a contribution, and help us add new
features and functionality. Click here: http://sourceforge.net/donate/
___
hibernate-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


[Hibernate] Check for invariants

2003-10-27 Thread Miguel Henley

Hello,

I know that I can implement the Validatable interface at the persistence class to 
check for invariant.
But supose that the invariant depends of the operation -- if the persistence class is 
going to be "inserted" at the database the rules is not the same for the update 
operation.
What is the best practice to do for this situation ?

Regards,

Miguel


---
This SF.net email is sponsored by: The SF.net Donation Program.
Do you like what SourceForge.net is doing for the Open
Source Community?  Make a contribution, and help us add new
features and functionality. Click here: http://sourceforge.net/donate/
___
hibernate-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


Re: [Hibernate] Check for invariants

2003-10-27 Thread Bear Giles
Miguel Henley wrote:
I know that I can implement the Validatable interface at the persistence class to 
check for invariant.
But supose that the invariant depends of the operation -- if the persistence class is going to 
be "inserted" at the database the rules is not the same for the update operation.
What is the best practice to do for this situation ?
Class invariants, by definition, are always true.

If you want context sensitive tests, you can return false from 
Interceptor.onSave() or Interceptor.onFlushDirty() (update) to 
cancel the requested operation.



---
This SF.net email is sponsored by: The SF.net Donation Program.
Do you like what SourceForge.net is doing for the Open
Source Community?  Make a contribution, and help us add new
features and functionality. Click here: http://sourceforge.net/donate/
___
hibernate-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


[Hibernate] CGLIB2

2003-10-27 Thread Matthew E . Porter
Has Hibernate be updated to use cglib2?  If not, will it and when?

Cheers,
  matthew porter


---
This SF.net email is sponsored by: The SF.net Donation Program.
Do you like what SourceForge.net is doing for the Open
Source Community?  Make a contribution, and help us add new
features and functionality. Click here: http://sourceforge.net/donate/
___
hibernate-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


[Hibernate] [Maybe OT] odmg.jar licence

2003-10-27 Thread fabio . tudone
Hi all,

does anybody know the exact licensing terms of the odmg.jar file? I was
unable to find anything mentioning something about it.

TIA

Fabio "Lievore" T.




---
This SF.net email is sponsored by: The SF.net Donation Program.
Do you like what SourceForge.net is doing for the Open
Source Community?  Make a contribution, and help us add new
features and functionality. Click here: http://sourceforge.net/donate/
___
hibernate-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


Re: [Hibernate] CGLIB2

2003-10-27 Thread Gavin King
Not yet. I guess i should do it now, huh?

Matthew E. Porter wrote:

Has Hibernate be updated to use cglib2?  If not, will it and when?

Cheers,
  matthew porter


---
This SF.net email is sponsored by: The SF.net Donation Program.
Do you like what SourceForge.net is doing for the Open
Source Community?  Make a contribution, and help us add new
features and functionality. Click here: http://sourceforge.net/donate/
___
hibernate-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel




---
This SF.net email is sponsored by: The SF.net Donation Program.
Do you like what SourceForge.net is doing for the Open
Source Community?  Make a contribution, and help us add new
features and functionality. Click here: http://sourceforge.net/donate/
___
hibernate-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


[Hibernate] Runtime error Question

2003-10-27 Thread BINGHAM, EARL (SBCSI)

I receive a runtime error during the initial setup of the persisting objects
to my oracle database. These include:

16:53:38,992  WARN SessionFactoryImpl:262 - Problem opening output
stylesheet - databinding disabled
javax.xml.transform.TransformerConfigurationException:
javax.xml.transform.TransformerException: javax.xml.tran\
sform.TransformerException: Did not find the stylesheet root!
at
org.apache.xalan.processor.TransformerFactoryImpl.newTemplates(TransformerFa
ctoryImpl.java:946)
at
net.sf.hibernate.impl.SessionFactoryImpl.(SessionFactoryImpl.java:259)
at
net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:61
8)

Yet I do not have any stylesheets in use. I can persist my data just fine,
but I receive this error during setup which I'm curious if it is a real
problem for long term use.

- Earl




---
This SF.net email is sponsored by: The SF.net Donation Program.
Do you like what SourceForge.net is doing for the Open
Source Community?  Make a contribution, and help us add new
features and functionality. Click here: http://sourceforge.net/donate/
___
hibernate-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


Re: [Hibernate] Runtime error Question

2003-10-27 Thread Gavin King
It is just a warn that i'm sure is irrelevant to you.

BINGHAM, EARL (SBCSI) wrote:

I receive a runtime error during the initial setup of the persisting objects
to my oracle database. These include:
16:53:38,992  WARN SessionFactoryImpl:262 - Problem opening output
stylesheet - databinding disabled
javax.xml.transform.TransformerConfigurationException:
javax.xml.transform.TransformerException: javax.xml.tran\
sform.TransformerException: Did not find the stylesheet root!
   at
org.apache.xalan.processor.TransformerFactoryImpl.newTemplates(TransformerFa
ctoryImpl.java:946)
   at
net.sf.hibernate.impl.SessionFactoryImpl.(SessionFactoryImpl.java:259)
   at
net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:61
8)
Yet I do not have any stylesheets in use. I can persist my data just fine,
but I receive this error during setup which I'm curious if it is a real
problem for long term use.
- Earl



---
This SF.net email is sponsored by: The SF.net Donation Program.
Do you like what SourceForge.net is doing for the Open
Source Community?  Make a contribution, and help us add new
features and functionality. Click here: http://sourceforge.net/donate/
___
hibernate-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel
 



---
This SF.net email is sponsored by: The SF.net Donation Program.
Do you like what SourceForge.net is doing for the Open
Source Community?  Make a contribution, and help us add new
features and functionality. Click here: http://sourceforge.net/donate/
___
hibernate-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


RE: [Hibernate] Lazy initialization problem

2003-10-27 Thread Andrew Zeon
How does EJBs address this issue?

thanks.


-Original Message-
From: Gavin King [mailto:[EMAIL PROTECTED]
Sent: Monday, 27 October 2003 2:12 PM
To: Andrew Zeon
Cc: Hibernate (E-mail)
Subject: Re: [Hibernate] Lazy initialization problem


Really, the correct approach is to use lazy initialization
together with "open session in view".

Alternatively, you can use an OUTER JOIN FETCH query to
retrieve the users more efficiently.

Andrew Zeon wrote:

>Hi,
>
>I have a class called CompanyImpl which represents a company. Within this
>class I have a list of users (List that contains a UserImpl objects). Our
>application uses a MVC model. Right now, we have a class callled
>DataAccessLayer which has all the persistence methods. There are 'restore'
>methods which restore enties such as companies or users. 
>
>The problem I have is, when restoring a company, Hibernate restores all the
>user's within the company since CompanyImpl has a List of UserImpl. I tried
>using lazy initialization but did not work due to the reason that the
>session has been committed before I retrieve the users. 
>
>I found this FAQ on the Hibernate website:
>
>http://hibernate.bluemars.net/118.html#A11
>
>I was wondering if anyone has an alternate solution to this problem. When a
>company has many users, it is taking ages to load up since it has to
restore
>all the users within the company. I could write hand-written JDBC code
>instead of using Hibernate's session.load method, but I wanted to ask the
>Hibernate community first to see if there are any other alternatives.
>
>Thanks.
>
>Regards,
>
>Andrew
>
>
>---
>This SF.net email is sponsored by: The SF.net Donation Program.
>Do you like what SourceForge.net is doing for the Open
>Source Community?  Make a contribution, and help us add new
>features and functionality. Click here: http://sourceforge.net/donate/
>___
>hibernate-devel mailing list
>[EMAIL PROTECTED]
>https://lists.sourceforge.net/lists/listinfo/hibernate-devel
>  
>


---
This SF.net email is sponsored by: The SF.net Donation Program.
Do you like what SourceForge.net is doing for the Open
Source Community?  Make a contribution, and help us add new
features and functionality. Click here: http://sourceforge.net/donate/
___
hibernate-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


Re: [Hibernate] CGLIB2

2003-10-27 Thread Josh Rehman
Hmm. Cglib is neat, but reflection is so fast that I would spend my time 
elsewhere, for example adding support for a typesafe-enum representation 
of lookup tables. :-)

Gavin King wrote:
Not yet. I guess i should do it now, huh?

Matthew E. Porter wrote:

Has Hibernate be updated to use cglib2?  If not, will it and when?

Cheers,
  matthew porter


---
This SF.net email is sponsored by: The SF.net Donation Program.
Do you like what SourceForge.net is doing for the Open
Source Community?  Make a contribution, and help us add new
features and functionality. Click here: http://sourceforge.net/donate/
___
hibernate-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel




---
This SF.net email is sponsored by: The SF.net Donation Program.
Do you like what SourceForge.net is doing for the Open
Source Community?  Make a contribution, and help us add new
features and functionality. Click here: http://sourceforge.net/donate/
___
hibernate-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel
--
Thanks,
Josh Rehman
Citysearch Toolsdev, 3559


---
This SF.net email is sponsored by: The SF.net Donation Program.
Do you like what SourceForge.net is doing for the Open
Source Community?  Make a contribution, and help us add new
features and functionality. Click here: http://sourceforge.net/donate/
___
hibernate-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


Re: [Hibernate] CGLIB2

2003-10-27 Thread Matthew E . Porter
Please note.  I am not asking/suggesting to change to version 2 because 
of its faster reflection code (although every little bit helps!).  I am 
asking because we want to use some of the other new features.

Cheers,
  matthew
On Oct 27, 2003, at 5:42 PM, Josh Rehman wrote:

Hmm. Cglib is neat, but reflection is so fast that I would spend my 
time elsewhere, for example adding support for a typesafe-enum 
representation of lookup tables. :-)

Gavin King wrote:
Not yet. I guess i should do it now, huh?
Matthew E. Porter wrote:
Has Hibernate be updated to use cglib2?  If not, will it and when?

Cheers,
  matthew porter


---
This SF.net email is sponsored by: The SF.net Donation Program.
Do you like what SourceForge.net is doing for the Open
Source Community?  Make a contribution, and help us add new
features and functionality. Click here: 
http://sourceforge.net/donate/
___
hibernate-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel
---
This SF.net email is sponsored by: The SF.net Donation Program.
Do you like what SourceForge.net is doing for the Open
Source Community?  Make a contribution, and help us add new
features and functionality. Click here: http://sourceforge.net/donate/
___
hibernate-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel
--
Thanks,
Josh Rehman
Citysearch Toolsdev, 3559


---
This SF.net email is sponsored by: The SF.net Donation Program.
Do you like what SourceForge.net is doing for the Open
Source Community?  Make a contribution, and help us add new
features and functionality. Click here: http://sourceforge.net/donate/
___
hibernate-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


---
This SF.net email is sponsored by: The SF.net Donation Program.
Do you like what SourceForge.net is doing for the Open
Source Community?  Make a contribution, and help us add new
features and functionality. Click here: http://sourceforge.net/donate/
___
hibernate-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


[Hibernate] Re: CGLIB2

2003-10-27 Thread Chris Nokleberg
Josh Rehman wrote:

> Hmm. Cglib is neat, but reflection is so fast that I would spend my time
> elsewhere, for example adding support for a typesafe-enum representation
> of lookup tables. :-)

Hibernate won't get much reflection speedup with CGLIB2, since it is already
using similar code in 1.0. The main benefits for Hibernate are:

 - Less classes created (memory/app server issue).
 - Ability for users to generate proxy classes offline, for faster startup.
 - Better debugging for reflection optimizer.
 - Transformation API.

Gavin, with the API changes it's probably quickest if I put a patch
together. Let me know when you want to do this and whether it should be
against HEAD or some branch. I would only recommend doing it if there is
going to be a 2.1beta5, since cglib is still in beta.

Chris




---
This SF.net email is sponsored by: The SF.net Donation Program.
Do you like what SourceForge.net is doing for the Open
Source Community?  Make a contribution, and help us add new
features and functionality. Click here: http://sourceforge.net/donate/
___
hibernate-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


Re: [Hibernate] Re: CGLIB2

2003-10-27 Thread Gavin King
Ah. hm. I am actually ready to release 2.1rc1. Just waiting on 
Bela's stuff.

Exactly how beta is "beta"?

Gavin, with the API changes it's probably quickest if I put a patch
together. Let me know when you want to do this and whether it should be
against HEAD or some branch. I would only recommend doing it if there is
going to be a 2.1beta5, since cglib is still in beta.
Chris



---
This SF.net email is sponsored by: The SF.net Donation Program.
Do you like what SourceForge.net is doing for the Open
Source Community?  Make a contribution, and help us add new
features and functionality. Click here: http://sourceforge.net/donate/
___
hibernate-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel
 



---
This SF.net email is sponsored by: The SF.net Donation Program.
Do you like what SourceForge.net is doing for the Open
Source Community?  Make a contribution, and help us add new
features and functionality. Click here: http://sourceforge.net/donate/
___
hibernate-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


Re: [Hibernate] New method proposal for session

2003-10-27 Thread Muthukumaran Thayumanavan

Yes, I would use this.
>From: "Matt Dowell" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Subject: [Hibernate] New method proposal for session 
>Date: Mon, 27 Oct 2003 10:44:25 -0600 
> 
>Would anyone else use this? 
> 
>session.delete(Class class, Object ID) 
> 
> 
>Matt Dowell 
>Notiva Corp. 
> 
> 
>--- 
>This SF.net email is sponsored by: The SF.net Donation Program. 
>Do you like what SourceForge.net is doing for the Open 
>Source Community? Make a contribution, and help us add new 
>features and functionality. Click here: http://sourceforge.net/donate/ 
>___ 
>hibernate-devel mailing list 
>[EMAIL PROTECTED] 
>https://lists.sourceforge.net/lists/listinfo/hibernate-devel 
 See when your friends are online with MSN Messenger 6.0. Download it now FREE!  


---
This SF.net email is sponsored by: The SF.net Donation Program.
Do you like what SourceForge.net is doing for the Open
Source Community?  Make a contribution, and help us add new
features and functionality. Click here: http://sourceforge.net/donate/
___
hibernate-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


[Hibernate] Re: Re: CGLIB2

2003-10-27 Thread Chris Nokleberg
Gavin King wrote:
> Ah. hm. I am actually ready to release 2.1rc1. Just waiting on
> Bela's stuff.
> 
> Exactly how beta is "beta"?

Not very beta? :-) Of course there may be some minor API changes going
forward, but I think our release schedule is a bit conservative, so if all
the tests pass it is unlikely there will be any other issues. For rc1 it
should be fine--I just didn't want it to be slipstreamed into 2.1 final if
that was imminent.

Chris




---
This SF.net email is sponsored by: The SF.net Donation Program.
Do you like what SourceForge.net is doing for the Open
Source Community?  Make a contribution, and help us add new
features and functionality. Click here: http://sourceforge.net/donate/
___
hibernate-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


Re: [Hibernate] Re: Re: CGLIB2

2003-10-27 Thread Gavin King
OK. You wanna make a patch?

The CVS branch is v21branch.

Chris Nokleberg wrote:

Gavin King wrote:
 

Ah. hm. I am actually ready to release 2.1rc1. Just waiting on
Bela's stuff.
Exactly how beta is "beta"?
   

Not very beta? :-) Of course there may be some minor API changes going
forward, but I think our release schedule is a bit conservative, so if all
the tests pass it is unlikely there will be any other issues. For rc1 it
should be fine--I just didn't want it to be slipstreamed into 2.1 final if
that was imminent.
Chris



---
This SF.net email is sponsored by: The SF.net Donation Program.
Do you like what SourceForge.net is doing for the Open
Source Community?  Make a contribution, and help us add new
features and functionality. Click here: http://sourceforge.net/donate/
___
hibernate-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel
 



---
This SF.net email is sponsored by: The SF.net Donation Program.
Do you like what SourceForge.net is doing for the Open
Source Community?  Make a contribution, and help us add new
features and functionality. Click here: http://sourceforge.net/donate/
___
hibernate-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


Re: [Hibernate] Re: CGLIB2

2003-10-27 Thread Juozas Baliuka



>
> Ah. hm. I am actually ready to release 2.1rc1. Just waiting on
> Bela's stuff.
>
> Exactly how beta is "beta"?

We are going to change package name, but I do not think we will change
something
not trivial.

>
> >Gavin, with the API changes it's probably quickest if I put a patch
> >together. Let me know when you want to do this and whether it should be
> >against HEAD or some branch. I would only recommend doing it if there is
> >going to be a 2.1beta5, since cglib is still in beta.
> >
> >Chris
> >
> >
> >
> >
> >---
> >This SF.net email is sponsored by: The SF.net Donation Program.
> >Do you like what SourceForge.net is doing for the Open
> >Source Community?  Make a contribution, and help us add new
> >features and functionality. Click here: http://sourceforge.net/donate/
> >___
> >hibernate-devel mailing list
> >[EMAIL PROTECTED]
> >https://lists.sourceforge.net/lists/listinfo/hibernate-devel
> >
> >
>
>
>
> ---
> This SF.net email is sponsored by: The SF.net Donation Program.
> Do you like what SourceForge.net is doing for the Open
> Source Community?  Make a contribution, and help us add new
> features and functionality. Click here: http://sourceforge.net/donate/
> ___
> hibernate-devel mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/hibernate-devel



---
This SF.net email is sponsored by: The SF.net Donation Program.
Do you like what SourceForge.net is doing for the Open
Source Community?  Make a contribution, and help us add new
features and functionality. Click here: http://sourceforge.net/donate/
___
hibernate-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel