Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / July 2007

Tip: Looking for answers? Try searching our database.

JBoss and Hibernate cannot create table

Thread view: 
torsten.jenkner@web.de - 27 Jul 2007 22:58 GMT
Hello,

while runningJboss 4.0.5. GA and EJB3.0 i get the following message
while automatically exporting the schema of an entity to the HSQL
database:

23:32:47,924 INFO  [SchemaExport] Running hbm2ddl schema export
23:32:47,924 INFO  [SchemaExport] exporting generated schema to
database
23:32:47,924 ERROR [SchemaExport] Unsuccessful: create table
PUBLIC.CABIN (ID) integer not null, NAME) varchar(255), BED_COUNT)
integer, DECK_LEVEL) integer, SHIP_ID) integer, prim
ary key (ID)))
23:32:47,924 ERROR [SchemaExport] Wrong data type: ) in statement
[create table PUBLIC.CABIN (ID)]
23:32:47,924 INFO  [SchemaExport] schema export complete

.. although the dialect ist HSQLDialect this wrong syntax is generated
(wrong ending brackets). What has to be done other than giving the
correct dialect to EJB3 to generate the correct syntax?

regards

Torsten Jenkner
Torsten Jenkner - 27 Jul 2007 23:30 GMT
torsten.jenkner@web.de schrieb:
> Hello,
>
[quoted text clipped - 20 lines]
>
> Torsten Jenkner

I just got the solution:

The code included some strange ending brackets in the entity, deleting
them just solved this problem, the entity is deployed now. Thank you
anyways!

Torsten Jenkner


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.