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

Seeking insights on embedding elide in JVM languages without annotations support #3

Open
Nitinrajyadav opened this issue Nov 24, 2022 · 2 comments

Comments

@Nitinrajyadav
Copy link

Hi @rsrini7 thanks for making this codebase open-source, it's been helpful!.

I have an application that is build in Cold-fusion[A JVM language].
It used hibernate under the hood for Entity-management by generating the hb.xml to get around the annotations.

I'm looking if there are any possibilities to use elide in the same fashion to create a read-only API; so far I haven't found anything approachable(P.S I'm not a native JAVA developer).

If possible, can you please share some insights or directions.

@rsrini7
Copy link
Owner

rsrini7 commented Dec 18, 2022

Hi @Nitinrajyadav , elide has elide-spring sub-project and supports only spring boot. If you are looking to support old way of hibernate xml files please check below stack overflow.

https://stackoverflow.com/questions/52475902/how-to-use-spring-boot-but-use-hibernate-xml-mapping-files-instead-of-annotation

Few more ideas:

  1. Write custom store on top of latest JPAStore and convert the hibernate to elide entities (I customized noopstore & transaction)
    Also, till hibernate-5 hbm files are still supported. so writing custom store can achieve this. (version 6 hibernate introducing extensions and this approach will be deprecated)
  2. Convert hbm to annotations (not that easy) try https://github.com/SchweizerischeBundesbahnen/hibernate_hbm2annotation

@Nitinrajyadav
Copy link
Author

thank you!!

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

No branches or pull requests

2 participants