Re: Cayenne 5.0 - Spring/Boot Support
Michael Gentry <[email protected]> Mon, 25 Jul 2022 10:56:11 -0400
| Newsgroups | gmane.comp.java.cayenne.devel |
|---|---|
| Message-ID | <CAOy5kzNTzPEGTLDtytvPgAFkLo2XvOmM__fmpMRJ9=pS-LgL7Q@mail.gmail.com> |
Maybe for bindings, have an @CayenneBinding on an implementation that gets scanned for by the @CayenneApplication? On Mon, Jul 25, 2022 at 10:43 AM Michael Gentry <[email protected]> wrote: > Thought I'd start a separate thread for this one... > > Should we maybe consider adding Spring support of some kind? An example > from one of the apps I work on: > > @EnableScheduling > @EnableFeignClients > @EnableConfigurationProperties > @SpringBootApplication > public class App { ... } > > Maybe have something along the lines of @CayenneApplication(model = > "cayenne-project.xml", bindings = { Service.class, ServiceImpl.class }) > > (The bindings thing can be better...) > > Then maybe you could @Autowire a CayenneRuntime or something in your > Spring classes to create new contexts, etc. > > I haven't thought about this too much, just throwing it out there for > consideration and discussion. > > Thanks, > > mrg > >