You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ibatis.apache.org by "Craig Wilson (JIRA)" <ib...@incubator.apache.org> on 2006/11/04 00:15:18 UTC

[jira] Created: (IBATISNET-194) Support for non-public constructors

Support for non-public constructors
-----------------------------------

                 Key: IBATISNET-194
                 URL: http://issues.apache.org/jira/browse/IBATISNET-194
             Project: iBatis for .NET
          Issue Type: Improvement
          Components: DataMapper
    Affects Versions: DataMapper 1.6
         Environment: .NET
            Reporter: Craig Wilson
            Priority: Minor


It would be nice to support non-public constructors natively rather than creating a custom IObjectFactory for "read-only" entities.

-- 
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

        

[jira] Commented: (IBATISNET-194) Support for non-public constructors

Posted by "Gilles Bayon (JIRA)" <ib...@incubator.apache.org>.
    [ http://issues.apache.org/jira/browse/IBATISNET-194?page=comments#action_12447125 ] 
            
Gilles Bayon commented on IBATISNET-194:
----------------------------------------

By "read-only" entities, what do you mean.
If it is, an entity does that only have private fields and get access proprerties, 
then you can use private filed mapping or use a public constructor for mapping.

I don't see why you want a private constructor ?

> Support for non-public constructors
> -----------------------------------
>
>                 Key: IBATISNET-194
>                 URL: http://issues.apache.org/jira/browse/IBATISNET-194
>             Project: iBatis for .NET
>          Issue Type: Improvement
>          Components: DataMapper
>    Affects Versions: DataMapper 1.6
>         Environment: .NET
>            Reporter: Craig Wilson
>            Priority: Minor
>
> It would be nice to support non-public constructors natively rather than creating a custom IObjectFactory for "read-only" entities.

-- 
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

        

[jira] Commented: (IBATISNET-194) Support for non-public constructors

Posted by "Miika Mäkinen (JIRA)" <ib...@incubator.apache.org>.
    [ https://issues.apache.org/jira/browse/IBATISNET-194?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12515130 ] 

Miika Mäkinen commented on IBATISNET-194:
-----------------------------------------

I don't see use for *private* but I see very good use for *internal* constructors. In fact, I was trying to do my DTOs so that I'd have:

internal .ctor(int primaryKeyId){
    _id = primaryKeyId;
   _isNew = false;
}

public .ctor(){
   _isNew = true;
}

and give iBatis access to internals of my DTO dll... now this is not possible.

> Support for non-public constructors
> -----------------------------------
>
>                 Key: IBATISNET-194
>                 URL: https://issues.apache.org/jira/browse/IBATISNET-194
>             Project: iBatis for .NET
>          Issue Type: Improvement
>          Components: DataMapper
>    Affects Versions: DataMapper 1.6
>         Environment: .NET
>            Reporter: Craig Wilson
>            Priority: Minor
>
> It would be nice to support non-public constructors natively rather than creating a custom IObjectFactory for "read-only" entities.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.