ibatis-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Weisel (JIRA)" <ibatis-...@incubator.apache.org>
Subject [jira] Commented: (IBATISNET-86) Make _mapper in IBatisNet.DataMapper.Mapper protected, not private
Date Wed, 06 Jul 2005 20:39:10 GMT
    [ http://issues.apache.org/jira/browse/IBATISNET-86?page=comments#action_12315175 ] 

Chris Weisel commented on IBATISNET-86:
---------------------------------------

I made a mistake and didn't think this through.  You can't make static methods virtual (and
therefore you can't override them).  The InitMapper() method would have to become a class
variable, which makes it a bit trickier.  However, it should be possible to do anyway.  I
will look into it.  

> Make _mapper in IBatisNet.DataMapper.Mapper protected, not private
> ------------------------------------------------------------------
>
>          Key: IBATISNET-86
>          URL: http://issues.apache.org/jira/browse/IBATISNET-86
>      Project: iBatis for .NET
>         Type: Improvement
>     Versions: DataMapper 1.1, DataMapper 1.2.0, DataMapper 1.2.1
>     Reporter: Chris Weisel
>     Assignee: Gilles Bayon
>     Priority: Trivial

>
> I'm setting up IBatisNet DataMapper to use an embedded sqlmap.config, and so I can't
use the provided Mapper class.  The only difference between what I'm doing and the standard
(and I would guess that this applies to most other users as well) is that I need to change
the InitMapper() method.  
> protected static void InitMapper()
> {
> 	DomSqlMapBuilder builder = new DomSqlMapBuilder();
> 	_mapper = builder.Configure("Resources.sqlmap.config, Project.Name.Persistence);
> }
> This is an example of the change I need to make.  If the _mapper variable were protected,
instead of private, I could simply extend Mapper and override InitMapper and be done with
it.  

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message