From 01b3c55fab9d364b2716d5c57bd8e2a7c08d52a7 Mon Sep 17 00:00:00 2001 From: Francesco Date: Sat, 30 Sep 2023 20:53:14 +0200 Subject: [PATCH] Updated docs for @HiddenColumn --- docs/index.html | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/docs/index.html b/docs/index.html index 508c0ac..ec4bda5 100644 --- a/docs/index.html +++ b/docs/index.html @@ -212,11 +212,24 @@ private User user;
 @DisplayImage
+@Lob
 private byte[] image;
 
 

This annotation can be placed on binary fields to declare they are storing an image and that we want it displayed when possible. The image will be shown as a small thumbnail.

+ +

3.1.6 @HiddenColumn

+
Code example
+
+
+@HiddenColumn
+private String cardNumber;
+
+
+

Marks a column as hidden. This column and its values will not be shown in the list and detail view for objects of this type. If the column is nullable, it will be hidden in the create and edit forms as well (and this will result in the column always being NULL when creating/editing objects). If, instead, it's not nullable column, it will be included in the create and edit forms as it would otherwise prevent the creation of items.

+

Please note that this is not meant as a security feature, but rather to hide uninformative columns that clutter the interface. In fact, since the create and edit form come pre-filled with all the information, these views will show the value of the hidden column (if it's not nullable).

+