<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:51:39 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>MongoDB Jira</title>
    <link>https://jira.mongodb.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.7.1</version>
        <build-number>970001</build-number>
        <build-date>13-04-2023</build-date>
    </build-info>


<item>
            <title>[JAVA-172] Support alternate naming for boolean getters in ReflectionDBObject</title>
                <link>https://jira.mongodb.org/browse/JAVA-172</link>
                <project id="10006" key="JAVA">Java Driver</project>
                    <description>&lt;p&gt;&quot;is&quot;-style getter is ignored by ReflectionObject. &lt;/p&gt;

&lt;p&gt;Domain class:&lt;br/&gt;
--------------------------------------------------------&lt;/p&gt;

&lt;p&gt;package test;&lt;/p&gt;

&lt;p&gt;import com.mongodb.ReflectionDBObject;&lt;/p&gt;

&lt;p&gt;public class Something extends ReflectionDBObject {&lt;br/&gt;
    private String kk;&lt;br/&gt;
    private boolean bb;&lt;/p&gt;

&lt;p&gt;    public Something(String kk, boolean bb) &lt;/p&gt;
{
        this.kk = kk;
        this.bb = bb;
    }

&lt;p&gt;    public String getKk() &lt;/p&gt;
{
        return kk;
    }

&lt;p&gt;    public void setKk(String kk) &lt;/p&gt;
{
        this.kk = kk;
    }

&lt;p&gt;    public boolean isBb() &lt;/p&gt;
{
        return bb;
    }

&lt;p&gt;    public void setBb(boolean bb) &lt;/p&gt;
{
        this.bb = bb;
    }
&lt;p&gt;}&lt;/p&gt;

&lt;p&gt;Application class:&lt;br/&gt;
--------------------------------------------------------&lt;/p&gt;

&lt;p&gt;package test;&lt;/p&gt;

&lt;p&gt;import com.mongodb.*;&lt;/p&gt;

&lt;p&gt;import java.net.UnknownHostException;&lt;/p&gt;

&lt;p&gt;public class BooleanGetterApp {&lt;br/&gt;
    public static void main(String[] args) {&lt;br/&gt;
        try &lt;/p&gt;
{
            Mongo m = new Mongo(&quot;localhost&quot;, 27017);
            DB db = m.getDB(&quot;mydb&quot;);
            DBCollection coll = db.getCollection(&quot;testCollection&quot;);
            coll.drop();

            Something something = new Something(&quot;kk&quot;, true);

            coll.save(something);

            DBObject dbObject = coll.findOne();
            System.out.println(dbObject.toString());
        }
&lt;p&gt; catch (UnknownHostException e) &lt;/p&gt;
{
            e.printStackTrace();
        }
&lt;p&gt;    }&lt;br/&gt;
}&lt;/p&gt;

&lt;p&gt;Application output:&lt;br/&gt;
--------------------------------------------------------&lt;/p&gt;

&lt;p&gt;{ &quot;_id&quot; : &lt;/p&gt;
{ &quot;$oid&quot; : &quot;4cab3c5417066088cabbebf3&quot;}
&lt;p&gt; , &quot;Kk&quot; : &quot;kk&quot;}&lt;/p&gt;

&lt;p&gt;&amp;#8211; boolean value was ignored. &lt;/p&gt;</description>
                <environment>java version &amp;quot;1.6.0_21&amp;quot;</environment>
        <key id="13253">JAVA-172</key>
            <summary>Support alternate naming for boolean getters in ReflectionDBObject</summary>
                <type id="2" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14711&amp;avatarType=issuetype">New Feature</type>
                                            <priority id="3" iconUrl="https://jira.mongodb.org/images/icons/priorities/major.svg">Major - P3</priority>
                        <status id="6" iconUrl="https://jira.mongodb.org/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="2">Won&apos;t Fix</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="ilya">Ilya Brodotsky</reporter>
                        <labels>
                    </labels>
                <created>Tue, 5 Oct 2010 15:05:14 +0000</created>
                <updated>Fri, 12 Jul 2013 13:46:43 +0000</updated>
                            <resolved>Fri, 12 Jul 2013 13:46:43 +0000</resolved>
                                    <version>2.1</version>
                                                    <component>Codecs</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="379768" author="jeff.yemin" created="Fri, 12 Jul 2013 13:46:43 +0000"  >&lt;p&gt;In 3.0 we&apos;re going to have much better support for encoding and decoding, but not through ReflectionDBObject.  So we&apos;re going to just leave this alone.&lt;/p&gt;</comment>
                            <comment id="114538" author="jeff.yemin" created="Sat, 28 Apr 2012 02:34:43 +0000"  >&lt;p&gt;We should probably use java.beans.Introspector#getBeanInfo instead of rolling our own introspector in com.mongodb.ReflectionDBObject.JavaWrapper&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hrhcu7:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>14880</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>