Commit Graph

33 Commits

Author SHA1 Message Date
Vincent Guillet
58a10fd4b8 Refactor Hibernate configuration to use a static local environment variable and simplify controller instantiation 2025-05-23 16:39:02 +02:00
Vincent Guillet
180e1e1622 Refactor Hibernate configuration and update data factory methods for clarity 2025-05-23 16:15:59 +02:00
Vincent Guillet
8bfc801b26 Add RestClient and DataFactory for HTTP requests and test data generation 2025-05-23 15:44:24 +02:00
Vincent Guillet
dc73603cda Refactor services and controllers to use ID for updates and standardize DAO method names 2025-05-23 14:50:27 +02:00
Vincent Guillet
c1617cbd38 Add server initialization in main application class 2025-05-23 11:26:30 +02:00
Vincent Guillet
a803a9ef22 Add dependency-reduced POM file for project configuration 2025-05-23 11:26:16 +02:00
Vincent Guillet
ed83c35f3c Add ApiApplication class to configure Jersey and register Jackson feature 2025-05-23 11:26:07 +02:00
Vincent Guillet
b63f1ef054 Add UserController class for user management endpoints 2025-05-23 11:25:56 +02:00
Vincent Guillet
8b8fae6e24 Update User class to use EAGER fetching for articles relationship 2025-05-23 11:25:44 +02:00
Vincent Guillet
adbdf0d619 Add ServerConfig class to initialize and start the server 2025-05-23 11:23:35 +02:00
Vincent Guillet
0887925477 Add Jackson JSR310 module dependency for Java 8 date/time support 2025-05-23 11:23:07 +02:00
Vincent Guillet
153380f541 update 2025-05-23 10:38:13 +02:00
Vincent Guillet
7fcdee6e2b remove target output 2025-05-20 13:46:29 +02:00
Vincent Guillet
3c330e9800 Refactor Publication class to use JOINED inheritance strategy and IDENTITY generation type 2025-05-20 13:44:51 +02:00
Vincent Guillet
47ee6f7ef1 Add Jakarta Validation API dependency and update Reflections dependency 2025-05-20 13:44:41 +02:00
Vincent Guillet
eaba56b92d Add Hibernate configuration file for database setup 2025-05-20 13:44:30 +02:00
Vincent Guillet
7f3157b7a2 Add Pair annotation for custom validation of even numbers 2025-05-20 13:44:10 +02:00
Vincent Guillet
5de8594095 Add PairValidator class for custom validation of even integers 2025-05-20 13:43:20 +02:00
Vincent Guillet
3da2712bdf Add HibernateConfig class for database configuration and refactor App to use BigDecimal for Ad prices 2025-05-20 13:43:09 +02:00
Vincent Guillet
24eab5f2cc Update Ad model to use BigDecimal for price and add email validation 2025-05-20 13:42:54 +02:00
Vincent Guillet
5f279e3e8a Add Ad model integration in App and implement database cleanup method 2025-05-19 14:44:53 +02:00
Vincent Guillet
a7701a59e5 Remove MySQL dialect property from Hibernate configuration and add mapping for Ad model 2025-05-19 14:44:44 +02:00
Vincent Guillet
0e219efac4 Add Publication abstract class for inheritance in content models 2025-05-19 14:44:35 +02:00
Vincent Guillet
02b837a0ea Refactor Article class to extend Publication and add views attribute 2025-05-19 14:44:26 +02:00
Vincent Guillet
e368538fed Remove unused Optional import from ArticleDao 2025-05-19 14:44:14 +02:00
Vincent Guillet
1a5b7b1a35 Update User entity to enable orphan removal for associated articles 2025-05-19 14:44:05 +02:00
Vincent Guillet
eafd02fc07 Add Ad model, DAO, and service for managing advertisements 2025-05-19 14:43:55 +02:00
Vincent Guillet
ad130294fd Refactor ArticleService and UserService to use records for improved readability 2025-05-19 14:43:41 +02:00
Vincent Guillet
bd62504d87 Refactor Article search functionality to support pagination and enhance output formatting 2025-05-15 17:14:54 +02:00
Vincent Guillet
14d1264091 Disable SQL logging in Hibernate configuration 2025-05-15 15:25:05 +02:00
Vincent Guillet
7c89d637f7 Add Article service and DAO with criteria-based search functionality 2025-05-15 15:24:46 +02:00
Vincent Guillet
8fd72d599d first commit with existing project files 2025-05-15 12:02:44 +02:00
Vincent Guillet
ff55029ce2 first commit with existing project files 2025-05-15 11:37:34 +02:00