openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "C N Davies" <>
Subject RE: Schema wont create
Date Tue, 24 Nov 2009 04:49:26 GMT
Did you add the type to your persistence.xml?

Also you need to set the property:

<property name="openjpa.jdbc.SynchronizeMappings"
value="buildSchema(ForeignKeys=true)" />



-----Original Message-----
From: Thomas Polliard [] 
Sent: Tuesday, 24 November 2009 3:42 PM
Subject: Re: Schema wont create

The files do have persisted fields:

public class Article {
	private int id = -1;
	private Author author = null;
	private String title = null;
	private String content = null;
	private List<Tag> tags = new ArrayList<Tag>();

View this message in context:
Sent from the OpenJPA Users mailing list archive at

View raw message