AFAICT, it looks like this annotation is part of the JPA 2.0 API. http://grepcode.com/search?query=javax+persistence+CollectionTable&start=0&entity=type&n=
On Wed, Sep 22, 2010 at 5:50 PM, jackalista <j...@twaxx.com> wrote: > > No, I had found some other reference, but this one is better, thanks. I am > trying to use a collection of basic types, as spec'ed in the doc you > referenced but am getting "import cannot be resolved" errors for > annotations > like @ElementCollection and @CollectionTable. > > Does this mean that we're missing a jar? I'm surprised that these > annotation are pitching a fit but haven't found any reference to their > being > contained in an optional jar or something like that. I looked in > persistence-api-1.0.jar and while the "normal" annotations we use for > collections involving mapped classes are all there. these annotations for > "basic types", in my case a List<String> or Set<String>, definitely aren't > in this jar file. Where are these puppies squirreled away, any clue? > > > Here are the exceptions: > > > /home/jack/java/foo/af/poc/schema/fooosssoa/core/src/main/java/com/foo/mdm/poc/model/Profile.java:19:0::0 > The import javax.persistence.ElementCollection cannot be resolved > error at import javax.persistence.CollectionTable; > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > > /home/jack/java/foo/af/poc/schema/fooosssoa/core/src/main/java/com/foo/mdm/poc/model/Profile.java:20:0::0 > The import javax.persistence.CollectionTable cannot be resolved > error at @ElementCollection > ^^^^^^^^^^^^^^ > > /home/jack/java/foo/af/poc/schema/fooosssoa/core/src/main/java/com/foo/mdm/poc/model/Profile.java:240:0::0 > ElementCollection cannot be resolved to a type > error at @CollectionTable(name="permitted_catalogs", > joincolum...@joincolumn(name="id")) > ^^^^^^^^^^^^ > > /home/jack/java/foo/af/poc/schema/fooosssoa/core/src/main/java/com/foo/mdm/poc/model/Profile.java:241:0::0 > CollectionTable cannot be resolved to a type > > > -=j=- > -- > View this message in context: > http://appfuse.547863.n4.nabble.com/mapping-List-String-tp2549056p2551243.html > Sent from the AppFuse - User mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net > For additional commands, e-mail: users-h...@appfuse.dev.java.net > >