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

Document how to store money using jpa #48

Open
SebastianDietrich opened this issue Aug 24, 2021 · 2 comments
Open

Document how to store money using jpa #48

SebastianDietrich opened this issue Aug 24, 2021 · 2 comments

Comments

@SebastianDietrich
Copy link

I've found no documentation as how to store monetary amounts (e.g. FastMoney) using JPA. Since the classes are reasonably not annotated as @embeddable and have more than one attribute one needs a workaround for storing/retrieving them.
I've found org.jadira.usertype.moneyandcurrency.moneta.PersistentFastMoneyAmountAndCurrency but I am not sure if this is still the way to go (since jadira seems a little bit outdated)

I would propose to document this and as well provide an example in https://github.com/JavaMoney/javamoney-examples

@keilw
Copy link
Member

keilw commented Aug 25, 2021

Hi @SebastianDietrich Thank you very much, that is a very good idea. You are very welcome to propose something to javamoney-examples and also create a ticket there to track such an example.
Thanks,
Werner

@SebastianDietrich
Copy link
Author

@keilw that's ok for me since it seems to work with jadira in my application. But before enhancing the documentation and writing an "official" example I'd like to make sure that this is the way to go or if you are proposing a different approach / framework.

@keilw keilw transferred this issue from JavaMoney/jsr354-ri Sep 16, 2021
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