50 Commits

Author SHA1 Message Date
85754f20f8 [FIX] configuration of mongo interface 2025-03-29 20:22:44 +01:00
969bf78576 [FEAT] configure back compatibility with mongo 2025-03-29 20:21:07 +01:00
1007628713 [FEAT] update test 2025-03-19 23:34:24 +01:00
1281415c48 [DEV] integrate hybernate validator 2025-03-16 11:24:16 +01:00
c1ccaf20ec
[FEAT] rework the generation of code for typescript (#27)
This PR is not compatible with previous code...
Rename some Annotation to have a better experience

Update the generation of the Typescript object 
===================================

By default the generation of object are only the object requested

if you annotate the object with: `@ApiGenerationMode(create = true,
update = true)`

the generation will add 2 object in typescript:
  - `MyClassUpdate` that contain the object specific for `PUT` request
  - `MyClassCreate` that contain the object specific for `POST` request
  - the PATCH request are generate with `Partial<MyClassUpdate>`

If you do not generate the create or update the system will wrap the
bass by default: `MyClass`

Add support of hidding the element in the generated object
=============================================

When generate the object some field are not needed to transmit to the
client, then we add `@ApiAccessLimitation(creatable = false, updatable =
false)` that permit to remove the field when Update or Create object are
generated

It will be used to check the Input validity instead of
`@schema(readonly)` (error of implementation)


TODO:
=====

  - Some issue when request Update generation and parent does not exist
- The checker is not updated with the use of the `@ApiAccessLimitation`
decorator.


dependencies:
===========
  - Closes: https://github.com/kangaroo-and-rabbit/archidata/issues/22
2025-03-08 14:32:16 +01:00
ba6478182d [API] move the cheker in the correct folder 2025-01-28 23:25:32 +01:00
cc639243fc [FEAT] add support of @DecimalMin and @DecimalMax 2025-01-28 23:17:34 +01:00
24c226e92c [FEAT] add @Size @Min @Max @parttern @email unit test for JPAChecker 2025-01-28 23:16:18 +01:00
b5fcc3e20c [FEAT,API] remove checker from JsonData and creadte @CheckerAnnotation 2025-01-28 23:15:11 +01:00
d3a7db4f21 [FEAT] update ObjectId for data 2025-01-05 21:41:19 +01:00
ea8e2cc452 [FIX] system.out removing to use all time LOGGER 2025-01-05 21:40:39 +01:00
ee831283d3 [FIX] dynamc modification type for DataJson 2025-01-02 23:06:27 +01:00
645c8b1364 [FEAT] add capability to change the name of the field (not full tested but base is working) 2025-01-02 18:01:02 +01:00
61dde0f0ed [FEAT] add capability to check the JPA fields to prevent refacto erors 2024-12-31 16:14:35 +01:00
e3dd58910e [FEAT] add DataJson(checker ...) availlable in JPA 2024-12-31 15:59:14 +01:00
841514935c [FIX] missing model test class 2024-12-31 10:41:14 +01:00
5f682da13e [FIX] variable access 2024-12-31 10:40:50 +01:00
01560cd285 [FEAT] support native ISO8601 Time serialisation in the tool rest APi and the data
need to call the ContextGenericTools.addJsr310(rc); to register it
2024-12-29 18:21:31 +01:00
b6464b7962 [FEAT] update all the interface to support MONGO DB 2024-12-29 17:12:28 +01:00
032728f05d [FIX] correct Many to Many (normal way) anf first value field 2024-09-14 15:42:21 +02:00
c94f488747 [FIX] better compatibility with @OneToMany 2024-06-01 13:53:48 +02:00
c44b726cc1 [FEAT] add test for @OneToMany that fail 2024-06-01 13:10:28 +02:00
c412daa1ca [TEST] simplify test model 2024-06-01 13:09:53 +02:00
a1791cf61d [TEST] LOG in TRACE only the library 2024-06-01 13:08:45 +02:00
dc6eeac008 [FIX] fix @ManyToOne (add UUID test) 2024-06-01 13:07:58 +02:00
bfb6498782 [FIX] remove dead test 2024-05-21 23:54:01 +02:00
300ce8eab6 [FIX] correct test 2024-05-21 23:54:01 +02:00
4dabfcf7d7 [DEV] full rework of Typescript generator (operational) 2024-05-21 23:53:31 +02:00
dc022abd2d [FEAT] continue refacto of the model generator (base model generated, not the API, mission some control like optional, and limit size 2024-05-21 23:53:26 +02:00
7a36580cce [FEAT] continue refacto of the generation code 2024-05-21 23:52:53 +02:00
62ec396ff7 [FEAT] Add capability to merge condition option in request and correct some back for SQLITE 2024-04-30 21:57:58 +02:00
4517854749 [DEV] update th format of the code 2024-04-28 16:56:33 +02:00
c43dfa097a [FEAT] add dependency of the primary key and rework quer(r)y 2024-04-28 10:27:30 +02:00
15125e2d6d [DEV] add condition in row request and better name naming in condition 2024-02-25 19:11:54 +01:00
7ae948bb79 [DEV] add raw query 2024-02-03 18:47:11 +01:00
aef4cdabc3 [DEV] configure mode to access on multiple database 2024-01-28 23:49:12 +01:00
1c82fb1a86 [DEV] upgrade library start to be really cool 2023-12-22 23:34:22 +01:00
26ba20d964 [DEV] continue integrations 2023-12-08 20:15:20 +01:00
c3d2eff5be [DEV] update options and where condition, some normalisation 2023-11-25 14:13:58 +01:00
ed3bfa0604 [DEV] update migraation model and manage sqlite support update with milisecond 2023-11-24 00:07:52 +01:00
01de431f5a [DEV] correct migration engine and add many test 2023-11-23 21:19:22 +01:00
49480bc0aa [DEV] start add hooks 2023-11-13 21:38:07 +01:00
c4fc49d91b [DEV] remove generic annotation and test json update 2023-11-11 10:47:03 +01:00
f69bc8097a [DEV] add sub-element with object and serialization as json 2023-11-03 22:45:28 +01:00
bc5c37e02a [DEV] continue works 2023-11-02 17:30:14 +01:00
8d271601be [DEV] refacto dataAccess and ManyToMany interface (get Long) 2023-11-02 15:14:55 +01:00
81cfe8a713 [DEV] update sone modality of test and normalization 2023-10-28 00:29:14 +02:00
bfb329b5be [DEV] work On test and api correction 2023-10-25 23:53:55 +02:00
88b945285b [DEV] update some models 2023-10-25 10:15:54 +02:00
d8c6de7bde [DEV] review many models and system 2023-10-14 12:18:36 +02:00