This fixes #37573.

I tested the fix locally in native image mode and added a test that reliable fails without using Neo4jManagedTypes proper. I don't know whether you run the integration tests in native mode, or put them somewhere else. If the latter is the case, please point me where I can move this or feel free to move it around yourself.

I suggest back porting this to 3.1 and 3.0 (I think 3.0 already managed SDN 7, including the dedicated managed types).

Thanks a lot!

Comment From: wilkinsona

https://github.com/spring-projects/spring-aot-smoke-tests would be a good place for the new test. Having looked there just now, I've noticed that we don't have any coverage for SDN. Setting up a new project in the smoke tests is a little bit involved so we can take a look at that and copy over something that's equivalent to the test proposed here.

Comment From: michael-simons

Hu… I'm quite sure I did run the format check (and check style afterwards…) 👀

Edit: Aaah yes, I just scanned contributing quickly and ran only ./gradlew -p buildSrc format.

Comment From: michael-simons

That failed with no apparent connection for me towards my changes…

Comment From: wilkinsona

Sorry about that. GitHub Actions and Pulsar don't seem to get on. We're not sure why yet. It might be resource constraints on the runner in which case #37578 should help.

Comment From: michael-simons

I removed the additional tests in favour to have it in the smoke tests project where it makes a lot more sense https://github.com/spring-projects/spring-aot-smoke-tests/pull/190

Thanks for pointing me there.