Cayenne 5.0 - Spring/Boot Support

Michael Gentry <[email protected]> Mon, 25 Jul 2022 10:43:00 -0400
Newsgroups gmane.comp.java.cayenne.devel
Message-ID <CAOy5kzMMGNgBTkE8193oAwMyLn6hq7BUjxjcYQ0GrMe_ymVFJQ@mail.gmail.com>
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