stainlessai / micronaut-jupyter

A Micronaut configuration that integrates your app with an existing Jupyter installation.
https://stainlessai.github.io/micronaut-jupyter
Apache License 2.0
9 stars 5 forks source link

MJ-7 ⁃ Access Micronaut Data repository from Jupyter script #5

Closed stainlessbot closed 4 years ago

stainlessbot commented 4 years ago

In the same way that GORM entities can be accessed and used in Jupyter scripts (MJ-2), Micronaut Data repositories should also be available to scripts. These are made available in Micronaut as Spring beans, so MJ-3 will have to be completed at a minimum for this to work. Additional work may also be required.

┆Issue Type: Story ┆Priority: Medium ┆Status: Resolved ┆Fix Versions: v0.2.0 ┆Issue Number: MJ-7 ┆Epic: Kernel

stainlessbot commented 4 years ago

➤ Joshua Carter commented:

This is mostly working on develop; however, the same hibernate lazy initialization problem happens with the repositories as happens with the dynamic finders in MJ-2 (this is likely a problem that applies to all entities, gorm or javax, so therefore likely MJ-16 as well).

stainlessbot commented 4 years ago

➤ Joshua Carter commented:

From what I can tell, lazy initialization is not supported in Micronaut, so any repos with queries for domains with collections that need to be fetched need to specify a join query (using @EntityMap for example).