Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Dali » Automatic table generation
Automatic table generation [message #434607] Wed, 17 October 2007 18:34 Go to next message
Klaus Unger is currently offline Klaus Unger
Messages: 11
Registered: July 2009
Junior Member
Hello,

short question: How can I get a non gneric JPA plattform to be able to
automatically generate DDL entries.


I am pretty new to Java EE 5 / JPA developtment. I intended to use
GlassFish V2 & Derby 10.2 embedded. Without deep background knowledge I
tried to create an Entity class. All I get is then:
> Schema "" cannot be resolved for table "User"
> Column "name" cannot be resolved
I guess this is due to a missing corresponding db/table in derby. I really
did not expect that I have to write SQL code to create tables for my
enties, i hoped this to be more transparent for Java development.
Even with the getting started, jsf tutorial or the dbschema demo i was not
able to figure out how to do this without manually writing SQL. Maybe I am
missing some important point, I would appreciate any hint where to look
further.

Best Regards,
Klaus
Re: Automatic table generation [message #434611 is a reply to message #434607] Thu, 18 October 2007 17:56 Go to previous messageGo to next message
Neil Hauge is currently offline Neil Hauge
Messages: 467
Registered: July 2009
Senior Member
Klaus,

I will first refer you to a past post here -
http://dev.eclipse.org/newslists/news.eclipse.technology.dal i/msg00324.html.

We should have a platform available soon that should provide DDL
generation support, but in the until then you can directly use the native
support built into TopLink Essentials, which is the JPA provider in
Glassfish.

Let us know if you have any problems with this.

Neil

Klaus Unger wrote:

> Hello,

> short question: How can I get a non gneric JPA plattform to be able to
> automatically generate DDL entries.
Re: Automatic table generation [message #434613 is a reply to message #434611] Fri, 19 October 2007 08:17 Go to previous message
Klaus Unger is currently offline Klaus Unger
Messages: 11
Registered: July 2009
Junior Member
Thanks for the prompt answer.
I am now using the toplink ddl generation and it works quite fine. I also
watched the webinar on [1], and it very much helped me to understand the
situation.
However I have to temporary disconnect from the database when changes are
made to avoid validation errors. I hope that a toplink platform for dali
comes soon.

- Klaus

[1] http://live.eclipse.org/node/245
Re: Automatic table generation [message #606130 is a reply to message #434607] Thu, 18 October 2007 17:56 Go to previous message
Neil Hauge is currently offline Neil Hauge
Messages: 467
Registered: July 2009
Senior Member
Klaus,

I will first refer you to a past post here -
http://dev.eclipse.org/newslists/news.eclipse.technology.dal i/msg00324.html

We should have a platform available soon that should provide DDL
generation support, but in the until then you can directly use the native
support built into TopLink Essentials, which is the JPA provider in
Glassfish.

Let us know if you have any problems with this.

Neil

Klaus Unger wrote:

> Hello,

> short question: How can I get a non gneric JPA plattform to be able to
> automatically generate DDL entries.
Re: Automatic table generation [message #606133 is a reply to message #434611] Fri, 19 October 2007 08:17 Go to previous message
Klaus Unger is currently offline Klaus Unger
Messages: 11
Registered: July 2009
Junior Member
Thanks for the prompt answer.
I am now using the toplink ddl generation and it works quite fine. I also
watched the webinar on [1], and it very much helped me to understand the
situation.
However I have to temporary disconnect from the database when changes are
made to avoid validation errors. I hope that a toplink platform for dali
comes soon.

- Klaus

[1] http://live.eclipse.org/node/245
Previous Topic:How to use @PersistenceContext
Next Topic:Integrating EJB 3.0 (Hibernate) into Eclipse
Goto Forum:
  


Current Time: Thu Apr 24 15:05:36 EDT 2014

Powered by FUDForum. Page generated in 0.12670 seconds