mahamuniraviraj / parancoe

Automatically exported from code.google.com/p/parancoe
Other
0 stars 0 forks source link

Fixture not loaded for an entity enum #12

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
In order to create a lookup table in my application I have defined a JPA
annotated entity like an enum, in this way:
@Entity
public enum Gender {
...
}
See this article for better understanding of a JPA annotated entity which
represents a lookup table:
http://www.parancoe.org/articles/2009/12/02/lookup-tables/
I have associated the related dao to that pojo .
The corresponding table is created on the underlying database.
I have defined a corresponding fixture in a ylm file and modified the
method getFixtureClasses() of the BaseTest class which  my test classes extend.
The fixture is not loaded.
The main issue is that also the other fixtures are not loaded As long as I
don't remove the class definition of my enum entity from the
getFixtureClasses method.

Original issue reported on code.google.com by enricogi...@gmail.com on 2 Dec 2009 at 1:44