Oren Eini

aka Ayende Rahien

Oren Eini

CEO of RavenDB

a NoSQL Open Source Document Database

Get in touch with me:

oren@ravendb.net +972 52-548-6969

Posts: 7,575
|
Comments: 51,189

Copyright ©️ Ayende Rahien 2004 — 2025

Privacy Policy · Terms
filter by tags archive
stack view grid view
  • architecture (606) rss
  • bugs (450) rss
  • challanges (123) rss
  • community (377) rss
  • databases (481) rss
  • design (893) rss
  • development (640) rss
  • hibernating-practices (71) rss
  • miscellaneous (592) rss
  • performance (397) rss
  • programming (1085) rss
  • raven (1442) rss
  • ravendb.net (526) rss
  • reviews (184) rss
  • 2025
    • May (7)
    • April (10)
    • March (10)
    • February (7)
    • January (12)
  • 2024
    • December (3)
    • November (2)
    • October (1)
    • September (3)
    • August (5)
    • July (10)
    • June (4)
    • May (6)
    • April (2)
    • March (8)
    • February (2)
    • January (14)
  • 2023
    • December (4)
    • October (4)
    • September (6)
    • August (12)
    • July (5)
    • June (15)
    • May (3)
    • April (11)
    • March (5)
    • February (5)
    • January (8)
  • 2022
    • December (5)
    • November (7)
    • October (7)
    • September (9)
    • August (10)
    • July (15)
    • June (12)
    • May (9)
    • April (14)
    • March (15)
    • February (13)
    • January (16)
  • 2021
    • December (23)
    • November (20)
    • October (16)
    • September (6)
    • August (16)
    • July (11)
    • June (16)
    • May (4)
    • April (10)
    • March (11)
    • February (15)
    • January (14)
  • 2020
    • December (10)
    • November (13)
    • October (15)
    • September (6)
    • August (9)
    • July (9)
    • June (17)
    • May (15)
    • April (14)
    • March (21)
    • February (16)
    • January (13)
  • 2019
    • December (17)
    • November (14)
    • October (16)
    • September (10)
    • August (8)
    • July (16)
    • June (11)
    • May (13)
    • April (18)
    • March (12)
    • February (19)
    • January (23)
  • 2018
    • December (15)
    • November (14)
    • October (19)
    • September (18)
    • August (23)
    • July (20)
    • June (20)
    • May (23)
    • April (15)
    • March (23)
    • February (19)
    • January (23)
  • 2017
    • December (21)
    • November (24)
    • October (22)
    • September (21)
    • August (23)
    • July (21)
    • June (24)
    • May (21)
    • April (21)
    • March (23)
    • February (20)
    • January (23)
  • 2016
    • December (17)
    • November (18)
    • October (22)
    • September (18)
    • August (23)
    • July (22)
    • June (17)
    • May (24)
    • April (16)
    • March (16)
    • February (21)
    • January (21)
  • 2015
    • December (5)
    • November (10)
    • October (9)
    • September (17)
    • August (20)
    • July (17)
    • June (4)
    • May (12)
    • April (9)
    • March (8)
    • February (25)
    • January (17)
  • 2014
    • December (22)
    • November (19)
    • October (21)
    • September (37)
    • August (24)
    • July (23)
    • June (13)
    • May (19)
    • April (24)
    • March (23)
    • February (21)
    • January (24)
  • 2013
    • December (23)
    • November (29)
    • October (27)
    • September (26)
    • August (24)
    • July (24)
    • June (23)
    • May (25)
    • April (26)
    • March (24)
    • February (24)
    • January (21)
  • 2012
    • December (19)
    • November (22)
    • October (27)
    • September (24)
    • August (30)
    • July (23)
    • June (25)
    • May (23)
    • April (25)
    • March (25)
    • February (28)
    • January (24)
  • 2011
    • December (17)
    • November (14)
    • October (24)
    • September (28)
    • August (27)
    • July (30)
    • June (19)
    • May (16)
    • April (30)
    • March (23)
    • February (11)
    • January (26)
  • 2010
    • December (29)
    • November (28)
    • October (35)
    • September (33)
    • August (44)
    • July (17)
    • June (20)
    • May (53)
    • April (29)
    • March (35)
    • February (33)
    • January (36)
  • 2009
    • December (37)
    • November (35)
    • October (53)
    • September (60)
    • August (66)
    • July (29)
    • June (24)
    • May (52)
    • April (63)
    • March (35)
    • February (53)
    • January (50)
  • 2008
    • December (58)
    • November (65)
    • October (46)
    • September (48)
    • August (96)
    • July (87)
    • June (45)
    • May (51)
    • April (52)
    • March (70)
    • February (43)
    • January (49)
  • 2007
    • December (100)
    • November (52)
    • October (109)
    • September (68)
    • August (80)
    • July (56)
    • June (150)
    • May (115)
    • April (73)
    • March (124)
    • February (102)
    • January (68)
  • 2006
    • December (95)
    • November (53)
    • October (120)
    • September (57)
    • August (88)
    • July (54)
    • June (103)
    • May (89)
    • April (84)
    • March (143)
    • February (78)
    • January (64)
  • 2005
    • December (70)
    • November (97)
    • October (91)
    • September (61)
    • August (74)
    • July (92)
    • June (100)
    • May (53)
    • April (42)
    • March (41)
    • February (84)
    • January (31)
  • 2004
    • December (49)
    • November (26)
    • October (26)
    • September (6)
    • April (10)
Deep Dive into RavenDB webinars
  previous post next post  
Jun 30 2008

NHibernate 2.0 Beta 1 Released

time to read 1 min | 32 words

image

NHibernate 2.0.0.Beta1 is released today. It is comparable to Hibernate 3.2 in terms of features.  Get the bits while they are hot.

Tweet Share Share 12 comments
Tags:
  • NHibernate

  previous post next post  

Comments

Fabio Maulo
29 Jun 2008
22:30 PM
Fabio Maulo

wwwonderful logo !!!!

Casey
30 Jun 2008
06:51 AM
Casey

Oren, thanks for the update, and thanks to all those who have worked hard on this.

Ohad Aston
30 Jun 2008
16:32 PM
Ohad Aston

wwwonderful framework!!!!

Billy Stack
01 Jul 2008
07:37 AM
Billy Stack

I notice that there is no LINQ with NHibernate 2.0 beta, although they do say that NHibernate with LINQ is a subproject that is ongoing.

When do you see LINQ being released in an NHibernate future version?

Carsten Hess
01 Jul 2008
11:40 AM
Carsten Hess

Super work! ;-)

I have an issue with the "ProxyTypeValidator" which hasn't changed from 1.2 to 2.0:

The problem is that the validator does not catch all failing conditions for a class to be subclassed by a proxy:

For some reason (error ?) .NET returns true for "IsVirtual" on a method if the method is defined in an interface which the class extends. But at the same time the method will be marked as Final.

So when you check for a method being virtual you will erroneously accept a method which is not virtual but is an implementation of an interfacemethod!

I'm using the following method to do extra check:

private static bool IsNotVirtual(MethodInfo method)

{

return (!method.IsVirtual || method.IsFinal);

}

Would be nice to know why Microsoft decided to do this - theres no reasons in doc.

At the same time its also necessary to check that the virtual methods are public! - otherwise the proxy's methods are not called...

Hope you can use the input and incorporate changes.

Kind regards

Carsten

Ayende Rahien
01 Jul 2008
13:40 PM
Ayende Rahien

When it is stable enough to cover all core scenarios.

Currently it is being field tested on several projects, and you can get the source and compile your own version.

No commitment for release date for that, but any help is welcome

Ayende Rahien
01 Jul 2008
14:03 PM
Ayende Rahien

Carsten,

It has to do with how you deal with dispatching a method call at runtime.

This is a fairly standard way of doing that.

Please create a JIRA issue for that

Bogdan Pietroiu
03 Jul 2008
13:07 PM
Bogdan Pietroiu

Ayende, I know that you are involved in nhibernate dev. Do you know where can I report an issue related to mapping problems?

I tested today some inheritance scenarious using nh2 (from svn) along with the latest bits from ActiveRecord (from svn ) and I could not

load a simple joined base class hierarchy

here is the xml generated by Active Record

<?xml version="1.0" encoding="utf-16"?>

<hibernate-mapping auto-import="true" default-lazy="false" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:nhibernate-mapping-2.2">

<class name="AR1.Model.BaseEntity, AR1" table="BaseEntity">

<id name="EntityId" access="property" column="EntityId" type="Int32" unsaved-value="0">

  <generator class="identity">

  </generator>

</id>

<join table="BaseEntity_Ext">

  <key column="EntityId" />

</join>

<joined-subclass name="AR1.Model.PersonEntity, AR1" table="PersonEntity">

  <key column="EntityId" />

  <join table="PersonEntity_Ext">

    <key column="EntityId" />

  </join>

</joined-subclass>

</class>

</hibernate-mapping>

here are the classes used to generate that mapping

[ActiveRecord, JoinedBase, JoinedTable("BaseEntity_Ext")]

public class BaseEntity : ActiveRecordBase<BaseEntity>

{

    private int entityId;


    [PrimaryKey(Generator = PrimaryKeyType.Identity)]

    public virtual int EntityId

    {

        get { return entityId; }

        set { entityId = value; }

    }

}


[ActiveRecord, JoinedTable("PersonEntity_Ext", Column = "EntityId")]

public class PersonEntity : BaseEntity

{


    [JoinedKey]

    public override int EntityId

    {

        get { return base.EntityId; }

        set { base.EntityId = value; }

    }

}

when I load this mapping I get this error:

(string)(11,6): XML validation error: The element 'class' in namespace 'urn:nhibernate-mapping-2.2' has invalid child element 'joined-subclass' in namespace 'urn:nhibernate-mapping-2.2'. List of possible elements expected: 'join, subclass, loader, sql-insert, sql-update, sql-delete, filter' in namespace 'urn:nhibernate-mapping-2.2'.

Bogdan Pietroiu
03 Jul 2008
13:19 PM
Bogdan Pietroiu

I found out the source of the problem: JoinedTable is not accepted on any class from a JoinedBase hierarchy. I wonder if this is by design ...

Ayende Rahien
03 Jul 2008
15:23 PM
Ayende Rahien

The mailing list is a good place, as is our JIRA

Cary McAnally
25 Jul 2008
18:43 PM
Cary McAnally

I am currently evaluating 1.2 nhibernate to use in in project we just started to rewrite a very large VB6 app in .net. I have built an example\demo application but I am quickly finding that I need functionality in nhibernate 2.0. I can not put Beta code into production. I need an estimate when 2.0 will be GA to determine if I am going to continue with nhibernate or choose another tool.

Ayende Rahien
25 Jul 2008
19:45 PM
Ayende Rahien

Cary,

We do not promise ship dates.

That said, it is soon.

You can start develop using the beta and switch to the RTM version when it is done.

If you are interest in helping make NH 2.0 happen faster, there are several ways to make this happen, ranging from paying for time spent on it to contributing

Comment preview

Comments have been closed on this topic.

Markdown formatting

ESC to close

Markdown turns plain text formatting into fancy HTML formatting.

Phrase Emphasis

*italic*   **bold**
_italic_   __bold__

Links

Inline:

An [example](http://url.com/ "Title")

Reference-style labels (titles are optional):

An [example][id]. Then, anywhere
else in the doc, define the link:
  [id]: http://example.com/  "Title"

Images

Inline (titles are optional):

![alt text](/path/img.jpg "Title")

Reference-style:

![alt text][id]
[id]: /url/to/img.jpg "Title"

Headers

Setext-style:

Header 1
========
Header 2
--------

atx-style (closing #'s are optional):

# Header 1 #
## Header 2 ##
###### Header 6

Lists

Ordered, without paragraphs:

1.  Foo
2.  Bar

Unordered, with paragraphs:

*   A list item.
    With multiple paragraphs.
*   Bar

You can nest them:

*   Abacus
    * answer
*   Bubbles
    1.  bunk
    2.  bupkis
        * BELITTLER
    3. burper
*   Cunning

Blockquotes

> Email-style angle brackets
> are used for blockquotes.
> > And, they can be nested.
> #### Headers in blockquotes
> 
> * You can quote a list.
> * Etc.

Horizontal Rules

Three or more dashes or asterisks:

---
* * *
- - - - 

Manual Line Breaks

End a line with two or more spaces:

Roses are red,   
Violets are blue.

Fenced Code Blocks

Code blocks delimited by 3 or more backticks or tildas:

```
This is a preformatted
code block
```

Header IDs

Set the id of headings with {#<id>} at end of heading line:

## My Heading {#myheading}

Tables

Fruit    |Color
---------|----------
Apples   |Red
Pears	 |Green
Bananas  |Yellow

Definition Lists

Term 1
: Definition 1
Term 2
: Definition 2

Footnotes

Body text with a footnote [^1]
[^1]: Footnote text here

Abbreviations

MDD <- will have title
*[MDD]: MarkdownDeep

 

FUTURE POSTS

  1. NOT Sharding RavenDB Vector Search - 7 hours from now
  2. Optimizing the cost of clearing a set - 3 days from now
  3. Scaling HNSW in RavenDB: Optimizing for inadequate hardware - 5 days from now

There are posts all the way to May 14, 2025

RECENT SERIES

  1. RavenDB News (2):
    02 May 2025 - May 2025
  2. Recording (15):
    30 Apr 2025 - Practical AI Integration with RavenDB
  3. Production Postmortem (52):
    07 Apr 2025 - The race condition in the interlock
  4. RavenDB (13):
    02 Apr 2025 - .NET Aspire integration
  5. RavenDB 7.1 (6):
    18 Mar 2025 - One IO Ring to rule them all
View all series

RECENT COMMENTS

  • ถูกใจ ร้านนี้สุดๆ! อุปกรณ์ จาก inkspa pantip ทำให้ ผลงาน สวย จ้าง เสื้อ ทีม ได้ งาน ลงตัว ราคา คุ้ม ชวน ใคร อยากได้ ดีไซน...
    By ink-spa พันทิป on The null check that didn't check for nulls
  • But in case you have nullability checks enabled (i.e. `<Nullable>enable</Nullable>`), then you'll have a compiler warning on ...
    By Samyon Ristov on The null check that didn't check for nulls
  • Grok wasn't *wrong*. It only said that `_items` can't be null for the condition to evaluate to `true`, but didn't say anythi...
    By Johannes Egger on The null check that didn't check for nulls
  • When I started enabling NRT, I remember I was initially confused when all variables (for reference types) declared with `var`...
    By riccardo on The null check that didn't check for nulls
  • That is surprising - I think of var as a shorthand that does not affect the final result of the compilation. I wouldn't expec...
    By Chris B on The null check that didn't check for nulls

Syndication

Main feed Feed Stats
Comments feed   Comments Feed Stats
}