Hi Eric,

If you're using the @GeneratedValue annotation and have not specified a
strategy the OPENJPA_SEQ table is normal. The OPENJPA_SEQ table is used to
generate the next value for an auto generated field (usually an ID).

For example, you might have something like this :
@Entity
public class SurveyResults {
    @Id
    @GeneratedValue
    private Long id;
   // snip
}

Since you didn't specify a generator OpenJPA creates a sequence table which
is used to find the next id for SurveyResults.

-mike

On Tue, Sep 9, 2008 at 4:11 PM, ericp56 <[EMAIL PROTECTED]>wrote:

>
> I changed the data types in the PK class to be "long."
>
> No more PK error, but now the code is trying to create a table named
> OPENJPASEQ.
>
> I'm figuring it gave up on using the PK for its identity?
>
> Eric
> --
> View this message in context:
> http://n2.nabble.com/PK-Problem%2C-mismatched-property-tp1078084p1078572.html
> Sent from the OpenJPA Users mailing list archive at Nabble.com.
>
>

Reply via email to