"Hidden" Fields for Models |
Supposing I have a database model representing a user. If I set up a REST controller for the User model, I don't want the password field to be returned when it is queried. Similarly, I don't want the password to be displayed in a HTML page if I need to use it in a template.
Although I'm pretty sure there's a way to do this using Entity classes (maybe by using smart getters?), I think this should be a built-in feature for Models. |
Messages In This Thread |
"Hidden" Fields for Models - by christianitis - 06-14-2022, 08:56 AM
RE: "Hidden" Fields for Models - by iRedds - 06-15-2022, 12:45 AM
RE: "Hidden" Fields for Models - by MGatner - 06-16-2022, 04:39 AM
RE: "Hidden" Fields for Models - by b126 - 06-30-2022, 08:05 AM
RE: "Hidden" Fields for Models - by kilishan - 06-30-2022, 10:44 AM
|