[Hibernate] Designing for Database Portability

2003-08-20 Thread Nick Heudecker
Morning all,

I have a project starting up that will be initially deployed on DB2,
but will later be moved to Oracle.  I'm curious as to what are some
portability practices that I can employ in order to ensure that I can
change databases without having to change my HQL statements.  Ideally,
I would like to just change the JDBC connection info and the dialect
and be done with it.

Thanks for your input.

Regards,
Nick Heudecker


---
This SF.net email is sponsored by Dice.com.
Did you know that Dice has over 25,000 tech jobs available today? From
careers in IT to Engineering to Tech Sales, Dice has tech jobs from the
best hiring companies. http://www.dice.com/index.epl?rel_code=104
___
hibernate-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


Re: [Hibernate] hibernate xdoclet plugin & ehcache

2003-12-01 Thread Nick Heudecker
If nobody else steps up, I'm willing to take this on.  I've done some other
XDoclet hacking recently and it's not too bad.  However, I haven't touched
any of the XDoclet 2 stuff.

On Mon, Dec 01, 2003 at 07:06:26AM -0800, khote wrote:
> Is anybody working  on the hibernatedoclet, to add the ehcache features
> somewhere?
> 
> 
> Kevin
> 
> 
> 
> ---
> This SF.net email is sponsored by: SF.net Giveback Program.
> Does SourceForge.net help you be more productive?  Does it
> help you create better code?  SHARE THE LOVE, and help us help
> YOU!  Click Here: http://sourceforge.net/donate/
> ___
> hibernate-devel mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/hibernate-devel

-- 
Nick Heudecker
System Mobile, Inc.
Email: [EMAIL PROTECTED]
Web: http://www.systemmobile.com


---
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
___
hibernate-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


[Hibernate] [ANNOUNCE] 'Introduction To Hibernate' Updated

2003-12-07 Thread Nick Heudecker
Hi,

I'm currently in the process of updating my 'Introduction to Hibernate' article to 
reflect the changes in 2.1.  I have also converted it from PDF to HTML to make it more 
accessible.  The updated article can be found here:

http://www.systemmobile.com/articles/IntroductionToHibernate.html

The intro page is at:

http://www.systemmobile.com/articles/hibernate_intro.php


Gavin, et. al:  Would it be possible to have the following pages updated to reflect 
this new location?
http://www.hibernate.org/152.html
http://www.hibernate.org/78.html

Thanks for your time.  I'm still working on my HQL article, which I'm hoping will be 
completed shortly.


-- 
Nick Heudecker
System Mobile, Inc.
Email: [EMAIL PROTECTED]
Web: http://www.systemmobile.com


---
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
___
hibernate-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


[Hibernate] Suggested Patch To Query Class

2003-12-17 Thread Nick Heudecker
Morning all (EST):

I would like to make the setProperties(Object) method in the Query class a bit smarter 
by adding a patch looking something like this:

public Query setProperties(Object bean) throws HibernateException {
Class clazz = bean.getClass();
String[] params = getNamedParameters();
for (int i = 0; i < params.length; i++) {
String namedParam = params[i];
try {
 Getter getter = ReflectHelper.getter(clazz, namedParam);
 Class retType = getter.getReturnType();
 if (retType.isArray() || retType instanceof 
java.util.Collection) {
 setParameterList( namedParam, 
getter.get(bean) );
 }
 else {
 setParameter( namedParam, getter.get(bean), guessType( 
getter.getReturnType() ) );
 }
}
catch (PropertyNotFoundException pnfe) {
// shouldn't something be logged here?
}
}
return this;
}

Thoughts on this?
    
-- 
Nick Heudecker
System Mobile, Inc.
Email: [EMAIL PROTECTED]
Web: http://www.systemmobile.com


---
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
___
hibernate-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


[Hibernate] Suggested Patch To (Abstract)Query Class

2003-12-23 Thread Nick Heudecker
Sorry for the resend, but were there any thoughts on this, or should I request an 
enhancement through JIRA?

> I would like to make the setProperties(Object) method in the Query class a bit 
> smarter by adding a patch looking something like this:
> 
> public Query setProperties(Object bean) throws HibernateException {
> Class clazz = bean.getClass();
> String[] params = getNamedParameters();
> for (int i = 0; i < params.length; i++) {
> String namedParam = params[i];
> try {
>  Getter getter = ReflectHelper.getter(clazz, namedParam);
>  Class retType = getter.getReturnType();
>  if (retType.isArray() || retType instanceof 
> java.util.Collection) {
>  setParameterList( namedParam, getter.get(bean) );
>  }
>  else {
>  setParameter( namedParam, getter.get(bean), guessType( 
> getter.getReturnType() ) );
>  }
> }
> catch (PropertyNotFoundException pnfe) {
> // shouldn't something be logged here?
>     }
> }
> return this;
> }
> 
> Thoughts on this?

-- 
Nick Heudecker
System Mobile, Inc.
Email: [EMAIL PROTECTED]
Web: http://www.systemmobile.com


---
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
___
hibernate-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


Re: [Hibernate] Hot redeploy issue in Tomcat

2004-07-14 Thread Nick Heudecker
Another way to solve this is to tell Tomcat not to serialize the session 
data when shutting down.  Granted, this may not be optimal for your 
particular environment, especially for a hot redeploy.

Here's how you do it:

  
  

The Manager element does the trick.  This has been tested with Tomcat 
4.x and 5.x.

Gavin King wrote:
AFAICT, it should be the application's responsibility to ensure that it 
bootstraps Hibernate *before* the session is deserialized.

Then the lookup would be successful.
Christian Bauer wrote:
We have problem with "SessionFactory not found: null" messages when 
Tomcat reloads a servlet context. This happens when you have a 
disconnected Session in your HttpSession, which is then 
serialized/deserialized while the classloader is restarted. This 
breaks the internals of Hibernate, as Hibernate tries to lookup the 
SessionFactoryImpl for the Session in a singleton HashMap in 
SessionFactoryObjectFactory on deserialization.

Note that this is not a problem usually in application servers, where 
the lookup can be made using JNDI. Any ideas are welcome.

http://opensource.atlassian.com/projects/hibernate/browse/HB-1069


--
Nick Heudecker
System Mobile, Inc.
Email: [EMAIL PROTECTED]
Phone: 312.420.8217
Web: http://www.systemmobile.com
---
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
___
hibernate-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


[Hibernate] Bug HB-1202

2004-09-01 Thread Nick Heudecker
All:
Bug HB-1202 
(http://opensource.atlassian.com/projects/hibernate/browse/HB-1202) has 
become a show-stopper for me.  I've dug around the source and I'm not 
sure of the best way to fix it.  Can someone provide guidance on 
resolving the problem with saveOrUpdateCopy?  I don't have any problem 
fixing it; my problem is finding it. :)

Thanks for your time.

Nick Heudecker

---
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
___
hibernate-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


Re: [Hibernate]

2005-03-08 Thread Nick Heudecker
I'm not a committer, but I prefer 'deferred'.
On Mar 8, 2005, at 10:21 AM, Michael Gloegl wrote:
I think we made a big mistake by re-using the word “lazy” for
attribute-level lazy fetching. People think that  will disable proxying.
Does anyone know another term we could use?
What about something like "deferred", call it "deferred property 
loading" ?

---
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_ide95&alloc_id396&op=click
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


Nick Heudecker
Email: [EMAIL PROTECTED]
Phone: 312.420.8217
http://www.systemmobile.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_ide95&alloc_id396&op=click
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel