Wasting time?

"Fabio Maulo" <[email protected]>
Newsgroups gmane.comp.windows.dotnet.nhibernate.devel
Message-ID <[email protected]>
Walking with my dog a question has invaded the mind.

Do we are wasting time?

Let me explain....
First of all the theory:
*POIDs should have absolutely no business meaning whatsoever. Nada. Zip.
Zilch. Zero.*

>From the point of view of OOP the POID (Persistent Object ID) is uneeded.
One of the *"invasion"* NH do, in our view of an entity, is that our entity
*must *hold the ID for the persistence.

In general, in our entity, we have a typed ID (int, Guid, long, composite
etc.)

Like many of us know NH, internally, can't use a strongly typed Id exactly
because we can use various types including an instance of a special object
(composite).
For all reference to ID NH use System.Object.

If we are using a ValueType and NH use System.Object, what happen with
Boxing - unBoxing ?
*How many time we are wasting in Boxing-unBoxing?

*If the *"POIDs should have absolutely no business meaning"*, which meaning
have declare it as int or long ?
Why not use System.Object as a type of our ID ?

Well... time off... is better to go to sleep.
Fabio Maulo

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php

_______________________________________________
Nhibernate-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nhibernate-development
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.