Hi Martin,

which Causeway version are you on and what persistence mechanism are you using 
(JDO, JPA or other)?

I'm not familiar with openapi-generator, but perhaps it can be configured to 
emit custom type annotations. Otherwise there are ways to hook into Causeway, 
but I guess I'm not going into details, until other options are explored.

Cheers, 
Andi Huber

On 2025/03/05 10:51:41 Martin Schelldorfer wrote:
> Hi,
> 
> We are generating our Domain Entities (Java classes) from an OpenAPI json 
> with openapi-generator.
> 
> To use Causeway annotations in Domain Entity Classes are required.
> 
>  
> 
> We don't want to modify the generated Domain Entity Classes.
> 
> What is the best approach to use Causeway without modifying original Domain 
> Entity Classes?
> 
> Derived classes could be an option but makes maintenance more difficult and 
> expensive...
> 
> 
> 
>  
> 
> 
> Freundliche Grüsse / Best Regards
> Martin Schelldorfer
> 
>  <http://www.e-switch.ch/> 
> 
> e-switch Solutions AG
> Consulting, Software and Services
> Wolleraustrasse 41b
> 
> CH-8807 Freienbach 
> 
> 
> T
> 
> +41 55 416 11 62
> 
> 
> M
> 
> +41 79 941 11 62
> 
>  <mailto:[email protected]> [email protected]
>  <http://www.e-switch.ch/> www.e-switch.ch
>  
> 
> 
> Geschäftsführer: Thorsten Waldner
> Handelsregister: CHE-105.346.021
> 
>  
> 
>  
> 
> 

Reply via email to