-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 56 posts ]  Go to page 1, 2, 3, 4  Next
Author Message
 Post subject: NHibernate 1.2.0.Alpha1
PostPosted: Sun May 28, 2006 5:52 pm 
Contributor
Contributor

Joined: Wed May 11, 2005 4:59 pm
Posts: 1766
Location: Prague, Czech Republic
An alpha version of NHibernate 1.2.0 was released today. This release provides a preview of upcoming changes in the next NHibernate release. The most important changes are:
  • Support for .NET Framework version 2.0. Generic collections (and any user-supplied collection types) are supported and generic overloads were created for several common methods.
  • All classes and collections are now lazily loaded by default (i.e. the default setting for the lazy attribute is now "true"). To aid in the transition, classes used for lazy loading are now validated and an error is thrown if any of their public members are not virtual. This validation can be disabled.
  • All assemblies are now signed using a newly generated key which is distributed in the download.

More details about these and other changes can be found in the release notes.
Download the package at Sourceforge.

The download also contains the libraries that were formerly part of NHibernateContrib package - the two packages were merged to make things easier to manage.

Note that this is an alpha-quality release, which means that more breaking changes may occur in future releases. Please report any bugs you find.

Finally, I would like to thank all the contributors who submitted patches to JIRA. Although I applied most of the patches with significant delay and rejected a few, I appreciate your interest in NHibernate and your willingness to contribute.


Last edited by sergey on Sun Sep 24, 2006 8:38 am, edited 1 time in total.

Top
 Profile  
 
 Post subject:
PostPosted: Mon May 29, 2006 3:00 am 
Expert
Expert

Joined: Tue Aug 23, 2005 5:52 am
Posts: 335
Good work Sergey!

Looks like you've been busy...

Cheers,

Symon.


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 29, 2006 3:31 am 
Senior
Senior

Joined: Thu Aug 25, 2005 3:35 am
Posts: 160
congrats from me too.. !


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 29, 2006 6:19 am 
Beginner
Beginner

Joined: Tue Aug 09, 2005 9:43 am
Posts: 30
Location: Lisbon, Portugal
Great! Great time for the release - just adopted generics!...

Keep up the good work!


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 29, 2006 6:57 am 
Beginner
Beginner

Joined: Wed Mar 22, 2006 6:59 am
Posts: 30
WOW ! Thats wonderful !!!!!

thank you and congradulations !!!!!!!


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 29, 2006 9:56 am 
Senior
Senior

Joined: Fri Jan 13, 2006 2:50 pm
Posts: 123
Location: Blumenau / SC / Brasil
Thanks man! :P

Generics rocks!


Top
 Profile  
 
 Post subject: How about nullable?
PostPosted: Mon May 29, 2006 10:03 am 
Newbie

Joined: Mon Jan 09, 2006 3:01 am
Posts: 1
Hard work! How about nullable? Go ahead.


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 29, 2006 10:48 am 
Contributor
Contributor

Joined: Wed May 11, 2005 4:59 pm
Posts: 1766
Location: Prague, Czech Republic
.NET 2.0 nullable types are supported as well.


Top
 Profile  
 
 Post subject: Proposal: generic Session.Load method
PostPosted: Mon May 29, 2006 2:05 pm 
Newbie

Joined: Thu May 04, 2006 4:23 am
Posts: 16
Location: Germany
Hi,

to make code using the ISession-API more concise and more type safe, the following generic Session.Load method could be incorporated into ISession / SessionImpl :

Code:
public TObject Load<TObject>(Object objID) where TObject : class
{         
        System.Type _objType = typeof(TObject);
        return this.Load(_objType, objID) as TObject;
}


Usage example:
Code:
        User m_user = m_session.Load<User>(userID);


Instead of:
Code:
        User m_user = (User) m_session.Load(typeof(User), userID );


Regards
Mick


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 29, 2006 4:04 pm 
Contributor
Contributor

Joined: Wed May 11, 2005 4:59 pm
Posts: 1766
Location: Prague, Czech Republic
Implemented already.


Top
 Profile  
 
 Post subject: PostLoad in Interceptor
PostPosted: Tue May 30, 2006 10:14 am 
Newbie

Joined: Sat Feb 11, 2006 12:11 pm
Posts: 7
Great news!

What about a PostLoad method in IInterceptor? I think it would be nice to be able to manipulate an entity right after it was loaded from DB.
The [NH-543] patch adds this feature among other.

I know this can be achieved by having entities implement ILifeCycle but I prefer the interceptor.


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 30, 2006 3:04 pm 
Pro
Pro

Joined: Fri Nov 19, 2004 5:52 pm
Posts: 232
Location: Chicago, IL
Thanks for the update Sergey. Much appreciated, especially the generics and nullables support. I appreciate you applying the SQL Server 2005 patch that I submitted too.

I'm wondering if changing the private/public key isn't going to cause problems though. Please see the following post. I ran into this a little while back and I'm having the same problem when I try using the new alpha. Namely, I can't load BLOB data that was saved with NHibernate 1.0.2.

http://forum.hibernate.org/viewtopic.php?t=959653

As far as I can tell, it looks like what's happening is that an NHibernate class or something is getting serialized into my BLOB field in the database. Then when I try to deserialize it, it's looking for the old version of NHibernate. It works OK, if I switch between 1.0.1 and 1.0.2, but, not if I switch to a version that I built with my own private key, or, with the new alpha.

Is there anyone out there that is using BLOB or CLOB fields that can do a test and confirm that I'm not doing something stupid and there really is a problem? Basically, all you have to do to test it is upgrade to the new alpha version of NHibernate and attempt to load a BLOB field that you saved using on older version of NHibernate.


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 30, 2006 3:37 pm 
Pro
Pro

Joined: Fri Nov 19, 2004 5:52 pm
Posts: 232
Location: Chicago, IL
It looks like I screwed something up in one of my mapping files. I think this might not be an issue. Sorry.


Top
 Profile  
 
 Post subject: Re: PostLoad in Interceptor
PostPosted: Wed May 31, 2006 3:27 am 
Contributor
Contributor

Joined: Wed May 11, 2005 4:59 pm
Posts: 1766
Location: Prague, Czech Republic
osu wrote:
What about a PostLoad method in IInterceptor? I think it would be nice to be able to manipulate an entity right after it was loaded from DB.
The [NH-543] patch adds this feature among other.


Since Hibernate 3 already implements the same functionality, but in a different way, I'd rather implement it their way than invent our own solution.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 01, 2006 5:28 pm 
Beginner
Beginner

Joined: Mon Apr 24, 2006 1:43 pm
Posts: 22
Thanks a lot!

Is it now possible to generate Outer Join using Criteria?

Cheers, Tom


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 56 posts ]  Go to page 1, 2, 3, 4  Next

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.