ChrisHolmes cb.hol...@gmail.com writes:
I have yet to see anyone explain this clearly.
Ok, I'll try to give at least some guideline.
First of all: The most important thing to remember is that an ISession
is really unstable and unreliable (according to the book 'Exceptional
C++' of Herb Sutter
You're right... I have the cascade=all attribute at the parent :
bag name=FlightEntryServices access=property
table=FlightEntryService lazy=false cascade=all
But ofcourse it's not needed at the child... I removed it and it works
fine.
Thank you very much !
Dimitris Andrakakis
On Aug 23,
I have a bidirectional one-to-many relationship with orphan delete.
Since saying all orphan children should be deleted, it seems logical
that the DB schema won’t allow orphaned children, meaning
Child.Parent_id should have a NOT NULL constraint. However, when I add
this constraint and try to do
That impl. allow what you are describing.A winForm, for use, should work
using MVP.
The P (or its variation VM for example) may work with its M or may share an
M from a parent usecase.
The M does not know if the persistence is implemented using NH or ADO.NET as
the DAO/Repository impl. does not
Belvasis, have you post an example some where ?If you want post your
examples in NH-Forge let me know.
Thanks.
2009/8/22 Belvasis belvasis...@googlemail.com
Hm, I think the first part of the blog describes the how and why of the
pattern well enough
Man, you are a eagle!! For me that mapping is unreadable. ;)
2009/8/22 Oskar Berggren oskar.bergg...@gmail.com
2009/8/22 Dimitris Andrakakis dandr...@gmail.com:
Hi all,
I have a problem which I find hard to understand : when I delete a
child object, the father gets deleted too.
Work At Home - Earn $30,000 Per Month
http://blogrns.googlepages.com/home
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
nhusers group.
To post to this group, send email to nhusers@googlegroups.com
To unsubscribe
Who let the dogs in? :)
Tuna Toksöz
Eternal sunshine of the open source mind.
http://devlicio.us/blogs/tuna_toksoz
http://tunatoksoz.com
http://twitter.com/tehlike
On Sun, Aug 23, 2009 at 6:06 PM, Minisha Sharma minishahotg...@gmail.comwrote:
Work At Home - Earn $30,000 Per Month
I am also interested in the subject.
Is there any MVP or MVVM open source framework that can handle
winforms ?
On 23 août, 15:36, Fabio Maulo fabioma...@gmail.com wrote:
Belvasis, have you post an example some where ?If you want post your
examples in NH-Forge let me know.
Thanks.
2009/8/22
Caliburn?
Tuna Toksöz
Eternal sunshine of the open source mind.
http://devlicio.us/blogs/tuna_toksoz
http://tunatoksoz.com
http://twitter.com/tehlike
On Sun, Aug 23, 2009 at 6:36 PM, Jim Tanner dobr...@gmail.com wrote:
I am also interested in the subject.
Is there any MVP or MVVM open
Hi,
Could you please post complete mapping? It's very hard to understand
the problem with the parts of mappings you wrote before.
And also please check generated SQL queries, probably you'll find the
answer yourself.
On Aug 22, 10:08 pm, graphicsxp graphic...@googlemail.com wrote:
Hi,
I'll
Blevasis,
This is a great explanation of the way you're doing it. But again, I
don't understand it. Specifically, I don't understand the details of
how it is implemented.
Example: The Calling Context and the Persistence Context. You say:
Every
usecase may instantiate it's own
On Aug 22, 5:32 pm, José Romaniello jfromanie...@gmail.com wrote:
2009/8/22 ChrisHolmes cb.hol...@gmail.com
Why don't make any sense to you?
Implementation. How things get wired together. Who calls who. How do
dependencies get resolved. What does an actual unit of work look like
in code
If you are all new to this, don't try to invent everything from
scratch in your first application. Either use the patterns and
libraries already mentioned or, if you want to really understand and
develop everything yourself, start simple.
Yes! Because understanding is the most important
I'll start with some code!
public class Person
{
public virtual int Id { get; private set; }
public virtual string FirstName { get; set; }
public virtual string LastName { get; set; }
}
public class BoardMember : Person
{
public virtual Board
I think foremost, you should tone down your demanding attitude. Everybody is
willing to help you just not with you demanding such attention.
Again, you should really take a close look at the unhaddins impl, run the
samples, etc. I was in the same boat as you some time ago. And managed to
Carlos you know demand is the more easy thing to do... the hard one is
think or share something.
2009/8/23 Carlos cubas veno...@hotmail.com
I think foremost, you should tone down your demanding attitude. Everybody
is willing to help you just not with you demanding such attention.
Again,
@Tuna : I don't find any mention of winform around caliburn but i may
be mistaken. Are u sure they mix well before i digg further ?
@Carlos : By any chance did u try the winform sample inside NhContrib
(not unhaddins)? Do u remember getting it work or was it broken ?
@ChrisHolmes and Belvasis :
No I am not sure, I may be wrong.
Tuna Toksöz
Eternal sunshine of the open source mind.
http://devlicio.us/blogs/tuna_toksoz
http://tunatoksoz.com
http://twitter.com/tehlike
On Sun, Aug 23, 2009 at 7:27 PM, Jim Tanner dobr...@gmail.com wrote:
@Tuna : I don't find any mention of winform
Perhaps you should ask in Fluent nhibernate group
fluent-nhibern...@googlegroups.com,
Tuna Toksöz
Eternal sunshine of the open source mind.
http://devlicio.us/blogs/tuna_toksoz
http://tunatoksoz.com
http://twitter.com/tehlike
On Sun, Aug 23, 2009 at 6:54 PM, Mikael Henriksson
I tried but they are clueless :) Seriously though I was suggested it might
be possible by Paul from fluent and to ask here. He suggested it might be
achievable through join.
On Sun, Aug 23, 2009 at 6:38 PM, Tuna Toksoz tehl...@gmail.com wrote:
Perhaps you should ask in Fluent nhibernate group
1. DiscriminateSubClassesOnColumn(Type)
2. .SubClassB(m =
3. {
4. m.Map(x = x.BProperty);
5. m.SubClassC(m =
6. {
7. m.Map(x = x.CProperty);
8. });
9. });
from
http://blog.jagregory.com/2009/01/05/fluent-nhibernate-subclass-syntax-changes/
And I know the post is a bit old.
Tuna Toksöz
Eternal sunshine of the open source mind.
http://devlicio.us/blogs/tuna_toksoz
http://tunatoksoz.com
http://twitter.com/tehlike
On Sun, Aug 23, 2009 at 7:54 PM, Tuna Toksoz tehl...@gmail.com wrote:
1. DiscriminateSubClassesOnColumn(Type)
Unfortunately, I've done something similar at work recently.
public class PersonMapping : ClassMapPerson
{
public PersonMapping()
{
Id(x = x.ID).GeneratedBy.GuidComb();
Map(x = x.Name).Not.Nullable();
JoinedSubClassBoardMember(ID, sm =
Ok guys, thanks for the answers.
I'm not criticizing, I've just asked because I'm new at NH and maybe I was
doing something wrong.
Best regards,
Renato Duran
De: nhusers@googlegroups.com [mailto:nhus...@googlegroups.com] Em nome de
Fabio Maulo
Enviada em: sexta-feira, 21 de agosto de
Hm i tried to write a winform framework (mostly) independend of NH. My
attemp was that the hole session thing
is transparent for the developer, so that all one has to know about NH is
the ICriteria interface. So i have
a IPersistenceService that is resolved by IoC. The Service has a method
Thanks Jason, that means however that I need to store everything in the
Person table which is what I was trying to avoid. Don't get me wrong if
anything has to go it's the table structure. Guess I'll bite the bullet for
now and come back later.
On Sun, Aug 23, 2009 at 7:11 PM, Jason Dentler
Belvasis,have a look to the video at the bottom of the post
http://jfromaniello.blogspot.com/2009/08/nhibernate-and-wpf-viewmodels-and-views.html
2009/8/23 Belvasis belvasis...@googlemail.com
Hm i tried to write a winform framework (mostly) independend of NH. My
attemp was that the hole
One mapping does not mean one table. I don't have my code from the office
available, but if I remember how that database turned out, you'll get three
tables. Each one builds on the one below. The Person table will store ID and
Name for all three types. The BoardMember table will store ID and Type
I know this blog and the video and it is fine. As I said I will rethink the
CpBThttp://fabiomaulo.blogspot.com/2008/12/implementing-conversation-per-business.html.
Maybe the name UseCase from
my last post is a little misleading. The UseCase is more a ICommand
compared to the example. It is just
Belvasis,If you need a place where share a post about another solution than
CpBT let me know. You can post your solution and code in NH-Forge, really.
More than one option is always welcome and in general people sharing his
code and his experience are welcome in NH-Forge.
2009/8/23 Belvasis
So now I start to understand. You have an entity that does not map to
a table. Instead you write a custom sql to load it from any other
table.
I don't have much experience with custom sql queries and can't tell
you whats going wrong. But to identify the problem you should take a
look at the
may be that working at home is actually working w/nhibernate :)
On Sun, Aug 23, 2009 at 5:12 PM, Tuna Toksoz tehl...@gmail.com wrote:
Who let the dogs in? :)
Tuna Toksöz
Eternal sunshine of the open source mind.
http://devlicio.us/blogs/tuna_toksoz
http://tunatoksoz.com
Hi all.All www.nhforge.org users are invited to complete his own page (the
Bio, Announcements, shared favorites, shared feeds and so on).
Let other users know you, your blog, your activities (in/out nh-forge
through Announcements).
Thanks.
Fabio Maulo
Yes thats true and i will do it, if i'm finished with it :-) But in general
would n't it be a good idea to
have a place at NHForge where new users can quickly find informations for
specific themes?
The current Patterns Practices section is a little short. In the end some
sort of link collection
well very well and good proposals.
We need an help in NH-Forge you all are candidate to help... this is the
proposal of www.nhforge.org
Perhaps we should re-new the initial spirit of the site FOR NHibernate
community
http://nhforge.org/content/WelcomeMessage.aspx
2009/8/23 Belvasis
Again, you should really take a close look at the unhaddins impl, run the
samples, etc. I was in the same boat as you some time ago. And managed to
figure it out. It can't be that hard can it?
I am definitely going to take a look at the implementation. It's just
time consuming;
Chris I feel your pain. I had the same issues when starting with NH
and a winform app. Here is my experience. Hope it helps.
A simple Repo.
public class HealthcareProfessionalRepository :
IHealthcareProfessionalRepository
{
ISessionFactory _sessionFactory;
public
Belvasis,
Thank you for the detailed post sir! This is so very good!
I do not know if this is something I will use, but it at least gives
me a very clear implementation pattern to analyze. It gives me a lot
to think about, which is good!
Thank you sir!
-Chris
On Aug 23, 10:55 am, Belvasis
@ChrisHolmes and Belvasis : Are you writting / have you written a
winform nh framework from scratch or can u point me to an existing
framework ?
I am in the process of evaluating potential ways to use NHibernate in
a WinForm application. I haven't written anything yet, just been
thinking,
I thought I saw an enhancement request get completed in 2.1 that
turned this on by default, is that right?
On Aug 18, 4:06 pm, Jim Tanner dobr...@gmail.com wrote:
Thanks Tuna and Fabio it was very helpfull.
On 18 août, 17:56, Fabio Maulo fabioma...@gmail.com wrote:
property
We have run into a problem with the latest version of NHibernate that
has us totally stumped. We have an inherited table schema using
joined-subclasses in the mapping file. And the business layer matches
this schema. In the constructor of one of the inherited classes, it
tries to reference a
I also would like to go on the record as saying that I too believe
dirty checking is a a bad idea and probably should be considered a bug
because it violates encapsulation boundaries. The leakage of mutable
references makes it difficult to verify that business rules always
remain valid when
the code please
2009/8/21 Seth Goldstein seth.d.goldst...@gmail.com
We have run into a problem with the latest version of NHibernate that
has us totally stumped. We have an inherited table schema using
joined-subclasses in the mapping file. And the business layer matches
this schema. In
44 matches
Mail list logo