Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » Command line EclipseLink
Command line EclipseLink [message #767818] Mon, 19 December 2011 01:50 Go to next message
sqc  is currently offline sqc Friend
Messages: 4
Registered: December 2011
Junior Member
Is there a way to run eclipselink as a commandline tool? Or as a jar file? I need to pass arguments and run it automatically so that it can generate the entities every time I change the db, or on every nightly build.
Re: Command line EclipseLink [message #768230 is a reply to message #767818] Mon, 19 December 2011 19:52 Go to previous messageGo to next message
James Sutherland is currently offline James SutherlandFriend
Messages: 1939
Registered: July 2009
Location: Ottawa, Canada
Senior Member

What are you trying to run exactly?


James : Wiki : Book : Blog : Twitter
Re: Command line EclipseLink [message #768292 is a reply to message #768230] Mon, 19 December 2011 21:36 Go to previous messageGo to next message
sqc  is currently offline sqc Friend
Messages: 4
Registered: December 2011
Junior Member
I'm trying to run eclipselink to generate entity files automatically (lets say like a cron job).
Re: Command line EclipseLink [message #769722 is a reply to message #768292] Thu, 22 December 2011 15:35 Go to previous message
James Sutherland is currently offline James SutherlandFriend
Messages: 1939
Registered: July 2009
Location: Ottawa, Canada
Senior Member

EclipseLink does not generate entity files. What are you generating the files from?
There are tools, such as Eclipse Dali (JPA) that can generate a Java object model from a database schema. They might support some kind of automation.

In general generating an object model is not normally the best idea. Normally the object model would be designed, base on the applications needs.
If you are generating the object model, what about the code that uses it, are you generating it to?

You might want to look at EclipseLink dynamic entity support.


James : Wiki : Book : Blog : Twitter
Previous Topic:JPA 2.0 @EmbeddedId mappings: bug with @MapsId in single-column identifying relationship?
Next Topic:Multiple inheritance and NotSerializableException
Goto Forum:
  


Current Time: Mon Dec 22 17:13:20 GMT 2014

Powered by FUDForum. Page generated in 0.01799 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software