Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check if an IntelliJ IDEA plugin could use the JPA Console #100

Open
vladmihalcea opened this issue Jun 8, 2020 · 3 comments
Open

Check if an IntelliJ IDEA plugin could use the JPA Console #100

vladmihalcea opened this issue Jun 8, 2020 · 3 comments
Labels
requires investigation Needs more research

Comments

@vladmihalcea
Copy link
Owner

The IntelliJ IDEA Ultimate Edition offers a JPA Console, which could be used to bootstrap Hypersistence Optimizer behind the scenes and report the Mapping and Configuration issues prior to running tests.

If a custom plugin could reference the JPA Console EntityManagerFactory, then we could run Hypersistence Optimizer and collect the optimization events.

@vladmihalcea vladmihalcea added the requires investigation Needs more research label Jun 8, 2020
@asm0dey
Copy link

asm0dey commented Jun 8, 2020

If it's not available you can request extension point to access EntityManagerFactory

@vladmihalcea
Copy link
Owner Author

@asm0dey I shall definitely try it.

For Spring, I should check whether there's access to the Spring beans. If the ApplicationContext is bootstraped somehow by IDEA, then I could get access to the JPA EntityManagerFactory bean.

@asm0dey
Copy link

asm0dey commented Jun 8, 2020

I can see SpringModel exists inside Ultimate, but can't check quickly of it exposed outside.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
requires investigation Needs more research
Projects
None yet
Development

No branches or pull requests

2 participants