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 <blackn...@gmail.com> 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 > >