Hello,

I'm quite new using the NHibernate and I'm facing few issues with it.

First of all, I have a concrete class, lets call it, "A", that will be 
persisted/imported daily in my database using a external data file/source.
In my application, we created few derived classes from "A", like "B" and 
"C". 

Now, I need to specialize some objects of type "A" to "B" or "C". 

My first attempt was to fetch an "A" object and cast it to B,  but I found 
out that it's impossible to do that.
Them I thought that if I create a new instance of "B" and set its "ID" 
equal to the fetched "A" object "ID" the hibernate would do the work, but 
it only creates a new row in my A table.

Is there anyway to reuse the information persisted on my A table, and 
specialize it to B?

Thanks


 

-- 
You received this message because you are subscribed to the Google Groups 
"Fluent NHibernate" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/fluent-nhibernate/-/PUHDoTA1dM4J.
To post to this group, send email to fluent-nhibernate@googlegroups.com.
To unsubscribe from this group, send email to 
fluent-nhibernate+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/fluent-nhibernate?hl=en.

Reply via email to