Giter VIP home page Giter VIP logo

Comments (7)

cowtowncoder avatar cowtowncoder commented on August 29, 2024

Ok, would you indicate like this:

public class Personel extends BaseEntity  {
    @JsonIgnoreProperties({ "parent" })
    public Location location;
}

name @JsonIgnoreProperties could work, since such annotation already exists, but currently can only be used for class. But this could be changed to allow use for properties as well.

from jackson-annotations.

cowtowncoder avatar cowtowncoder commented on August 29, 2024

Oh. And even better, as per this Jira entry (https://jira.codehaus.org/browse/JACKSON-787), this was implemented for Jackson 2.0.0! So you can just use @JsonIgnoreProperties on fields or getter/setters.
So if I understood your request correctly, this already works.

from jackson-annotations.

 avatar commented on August 29, 2024

i using jackson with spring 3.1.1 but i think jackson 2 not support in this spring version
plz help me how can solve my problem this is critical for me

from jackson-annotations.

cowtowncoder avatar cowtowncoder commented on August 29, 2024

The only solution I can think of for Jackson 1.x is to write a custom serializer.

from jackson-annotations.

 avatar commented on August 29, 2024

how can do it plz help can you give me one samples
plz help me

from jackson-annotations.

cowtowncoder avatar cowtowncoder commented on August 29, 2024

I would suggest you read a FAQ on issue trackers: these are NOT help forums, but for reporting bugs or requesting features. Help forums are different.
Please subscribe to a user list or go to http://jackson-users.ning.com.

And surely you can use google to find documentation, either by yourself, or via help forums.

from jackson-annotations.

 avatar commented on August 29, 2024

thanks
another question
how can i get just property that want not say @JsonIgnoreProperties
like @jsonproperties({'id','firstname'})

from jackson-annotations.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.