openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rick Curtis <curti...@gmail.com>
Subject Re: Files in package org.apache.openjpa.kernel.jpql.
Date Wed, 29 Apr 2009 21:44:06 GMT

Ashish -

I just pulled down trunk and have a slightly shorter solution that what Mike
suggested :)

- Check out and compile trunk
- trunk\openjpa-parent> mvn eclipse:eclipse
- In Eclipse 
	- Import > Existing Projects into Workspace > Import all of the OpenJPA
projects except openjpa
	- For each project > right click -> properties > Java Build Path > Source
tab > there should be a folder listed with a red x, delete that.
	- Window > Preferences > Java > Build Path > Classpath Variables -> add
M2_REPO and have it point to your local maven repository.
	* At this point you shouldn't have any compiler errors in Eclipse.
	- Edit the hellojpa persistence-unit in
openjpa-examples/target/classes/META-INF/persistence.xml:
		- Remove the comments around the connection properties
		- Also want to add the line listed below[1]. This will trigger OpenJPA to
build your db tables.

-Rick


[1] <property name="openjpa.jdbc.SynchronizeMappings"
value="buildSchema(ForeignKeys=true)"/>
-- 
View this message in context: http://n2.nabble.com/Files-in-package-org.apache.openjpa.kernel.jpql.-tp2734002p2743503.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.


Mime
View raw message