Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3362054
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T03:13:36+00:00 2026-05-18T03:13:36+00:00

I am trying to use the jpa2 feature @ElementCollection for a List of Strings

  • 0

I am trying to use the jpa2 feature @ElementCollection for a List of Strings in my Entity. I am using the hibernate3-maven-plugin to carry out the hbm2ddl task.

However it seems the version of hibernate tools used by the plugin does not know how to deal with the @ElementCollection annotation can anyone give me pointers about what version of hibernate tools I need to use so that this is not the case. Should it just be a case of specifying the correct version of hibernate tools?

 <plugin>
  <groupId>org.codehaus.mojo</groupId>
  <artifactId>hibernate3-maven-plugin</artifactId>
  <version>2.2</version>
  <dependencies>
<dependency>
     <groupId>postgresql</groupId>
     <artifactId>postgresql</artifactId>
     <version>8.3-603.jdbc4</version>
    </dependency>
   <dependency>
     <groupId>org.hibernate</groupId>
     <artifactId>hibernate-tools</artifactId>
     <version>3.2.4.GA</version>
     <type>jar</type>
     <scope>runtime</scope>
 </dependency>

[INFO] Trace
org.hibernate.MappingException: Could
not determine type for:
java.util.List, at table: mystuff, for
columns:
[org.hibernate.mapping.Column(stuffs)]

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T03:13:36+00:00Added an answer on May 18, 2026 at 3:13 am

    I think you just have a version mismatch with the plugin. hibernate3-maven-plugin has a dependency on Hibernate 3.3.1.GA.

    You could try and ignore that on the hibernate3-maven-plugin and get the correct version (3.5.3 Final might work) manually.

    Maybe setting the annotation on the field instead of setter might help as well.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying use MySql and Entity Framework, using Connector/Net 6.1 with this as
I'm trying to use Maven, Jetty and HtmlUnit to test a webapp written using
I am trying to design an entity model using JPA2.0 via hibernate. I have
I was trying use svn to find a checkin using svn log, but it
Trying to use features to deploy custom fields, content type and list. So far
I'm trying use make a div's background transparent using a mixture of CSS3 rgba()
I am trying use the new server side plug-in feature for TFS 2010. (I
I am trying to use subqueries in an application I am writing using JPA
I am trying use the jQuery table sorter plugin for a table that is
I'm trying to build an implementation agnostic maven module which relies on JPA2. Unfortunately,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.