Automatic table generation [message #434607] |
Wed, 17 October 2007 18:34  |
Eclipse User |
|
|
|
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 #434613 is a reply to message #434611] |
Fri, 19 October 2007 08:17  |
Eclipse User |
|
|
|
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 #606133 is a reply to message #434611] |
Fri, 19 October 2007 08:17  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.03599 seconds