-
I have a POJO with its metadata already created (IAppointment) and an annotated class (Appointment). There's no info about that in the documentation, the following does not work: |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
Hi @alvarorece , it is not possible the way you describe it. You are right, the two plugins have two separate metadata storages. What I'd recommend is to make |
Beta Was this translation helpful? Give feedback.
-
I was hoping to be able to do this. Would it be possible to create a plugin that composes multiple plugins and aggregates their metadata stores? |
Beta Was this translation helpful? Give feedback.
-
I think that if you use a strategyInitializer: pojos() and expose metadata from your class, will works! user.interface.ts
user.dto.ts
user.metadata.ts
entity-mapper.interface.ts
user-mapper.service.ts
user-repository.service.ts
|
Beta Was this translation helpful? Give feedback.
Hi @alvarorece , it is not possible the way you describe it. You are right, the two plugins have two separate metadata storages. What I'd recommend is to make
IAppointment
a class likeAppointmentDto
or something like that (which fits its purpose). A class without any constructor and methods are almost the same as an interface in this case.