-->
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.  [ 4 posts ] 
Author Message
 Post subject: bug in subclasses in different assemblies.
PostPosted: Tue Dec 20, 2005 3:42 pm 
Hi. This is a bug that did not occur in nhibernate 0.8 but does occur
in nHibernate 1.01:

I am adding xml mapping files to a Configuration:.
Configuration cfg = new NHibernate.Cfg.Configuration();
cfg.AddXmlFile (filename);
factory = cfg.BuildSessionFactory();

In the mapping file I have a base class Instrument, that
gets defined in the DATA assembly. I have a lot of subclasses
that get defined in the DATA assembly as well - these do work
fine. Then I have a other subclasses that gets defined in the PORTFOLIO
assembly - these do not work. This are the error messages I get:

ERROR NHibernate.Persister.GetSetHelperFactory [(null)] (:0) - Compiled
with error: using System; using NHibernate.Property; namespace NHibernate.Persister { public class GetSetHelper_myQUANT_OPTION_fOption : IGetSetHelper {
ISetter[] setters;
IGetter[] getters;
public GetSetHelper_myQUANT_OPTION_fOption(ISetter[] setters, IGetter[] getters) {
this.setters = setters;
this.getters = getters;
}
public void SetPropertyValues(object obj, object[] values) {
myQUANT.OPTION.fOption t = (myQUANT.OPTION.fOption)obj;
t.expirymonth = values[0] == null ? new System.Int32() : (System.Int32)values[0];
t.expirydate = values[1] == null ? new System.DateTime() : (System.DateTime)values[1];
t.optionexchange = (System.String)values[2];
t.optiontype = (System.String)values[3];
t.strikeprice = values[4] == null ? new System.Single() : (System.Single)values[4];
t.underlying = (System.String)values[5];
t.multiplyer = values[6] == null ? new System.Single() : (System.Single)values[6];
t.expiryyear = values[7] == null ? new System.Int32() : (System.Int32)values[7];
t.CUSIP = (System.String)values[8];
t.type = (System.String)values[9];
t.ISIN = (System.String)values[10];
t.WKN = (System.String)values[11];
t.name = (System.String)values[12];
}
public object[] GetPropertyValues(object obj) {
myQUANT.OPTION.fOption t = (myQUANT.OPTION.fOption)obj;
object[] ret = new object[13];
ret[0] = t.expirymonth;
ret[1] = t.expirydate;
ret[2] = t.optionexchange;
ret[3] = t.optiontype;
ret[4] = t.strikeprice;
ret[5] = t.underlying;
ret[6] = t.multiplyer;
ret[7] = t.expiryyear;
ret[8] = t.CUSIP;
ret[9] = t.type;
ret[10] = t.ISIN;
ret[11] = t.WKN;
ret[12] = t.name;
return ret;
}
}
}

2005-12-20 20:33:53,897 [2352] ERROR NHibernate.Persister.GetSetHelperFactory [(null)] (:0) - Line:0, Column:0 Message:Die referenzierte Klasse 'myQUANT.OPTION.fOption' hat eine Basisklasse oder Schnittstelle 'myQUANT.DATA.fInstrument', die in einer nicht referenzierten Assembly definiert ist. F


Top
  
 
 Post subject:
PostPosted: Tue Dec 20, 2005 6:22 pm 
Contributor
Contributor

Joined: Wed May 11, 2005 4:59 pm
Posts: 1766
Location: Prague, Czech Republic
This will be fixed in 1.0.2. For now, just ignore the log messages, they are harmless.


Top
 Profile  
 
 Post subject: 1.0.2
PostPosted: Wed Dec 21, 2005 7:31 am 
sergey. thank you for your answer. good to know. can you tell me when 1.0.2 will be released? again. thank you very much for your answer. florian.


Top
  
 
 Post subject:
PostPosted: Fri Dec 23, 2005 6:50 am 
Contributor
Contributor

Joined: Wed May 11, 2005 4:59 pm
Posts: 1766
Location: Prague, Czech Republic
1.0.2 will be out in one or two weeks.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 

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.