i'm not really sure if it matters but since i am relying on maven to do some of the dirty work that i dont yet understand, this is the dependencies in my pom.xml file in case i have done something wrong there:
finally, my persistence.xml file looks like this:
also, is it possible to map an enum to a reference table? So that instead of the enum value by ordinal or string it would join to some other table that had the constant definitions mapped to some number?
one other question i have about all this is that if i remove the enum variable then everything seems to work except the price value in my Anvil class shows up as double in the mysql database and the precision or scale does not get defined. why is that?
posted 8 years ago
Originally posted by Ra Carter:
To me, this looks more like an issue with a generated ID than with an enum. In any case, it would help to see the ID mapping within the class and the code that inserts the object. [ November 26, 2007: Message edited by: Edvins Reisons ]