<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:59:17 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-3303] @BsonProperty on a getter is ignored if the field is not serialized anyway</title>
                <link>https://jira.mongodb.org/browse/JAVA-3303</link>
                <project id="10006" key="JAVA">Java Driver</project>
                    <description>&lt;p&gt;If I have a getter/setter pair like&lt;br/&gt;
&lt;tt&gt;public long get07()&lt;/tt&gt;&lt;br/&gt;
and&lt;br/&gt;
&lt;tt&gt;public void set07(long _07)&lt;/tt&gt;&lt;br/&gt;
I don&apos;t see any way to make these serialize and deserialize using the POJO support.&lt;br/&gt;
Adding &lt;tt&gt;@BsonProperty(&quot;07&quot;)&lt;/tt&gt; has no effect at all and the field is simply ignored completely.&lt;br/&gt;
The only way I found was to add another pair of getter/setter that has some name that is recognized as property and then use the annotation to configure the name.&lt;/p&gt;

&lt;p&gt;Imho adding the annotation to a paramterless getter should be enough to make it serialize.&lt;/p&gt;</description>
                <environment></environment>
        <key id="781083">JAVA-3303</key>
            <summary>@BsonProperty on a getter is ignored if the field is not serialized anyway</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</type>
                                            <priority id="3" iconUrl="https://jira.mongodb.org/images/icons/priorities/major.svg">Major - P3</priority>
                        <status id="10038" iconUrl="https://jira.mongodb.org/images/icons/subtask.gif" description="">Backlog</status>
                    <statusCategory id="2" key="new" colorName="default"/>
                                    <resolution id="-1">Unresolved</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="vampire">Bj&#246;rn Kautler</reporter>
                        <labels>
                    </labels>
                <created>Wed, 29 May 2019 18:03:52 +0000</created>
                <updated>Wed, 30 Mar 2022 23:06:27 +0000</updated>
                                            <version>3.10.2</version>
                                                    <component>POJO</component>
                                        <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                    <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="781094">JAVA-3304</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <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|hr6tcn:</customfieldvalue>

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