In my project, somewhere I have to work with a unitOfIssue
of Items
. Now, various items of course can have different units of representation. So, I
I was in a project in which we had extensive use of JSR-275 (before it was rejected by JCP). Originally we were not using JPA, but later it was decided that we should persist our model using JPA 2.0 and I had to deal with the persistence of my measure objects.
This may not be the answer to your question, but may bring some interesting thoughts to the discussion.
We considered several alternatives:
We ended up using alternative #3 and it worked pretty well for us.
I suggest you to write your own. Probably you may need Unit Of Measure Conversion
also.
Definition of UOM from ARTS Retail Data Model Logical View
and for conversion