Hibernate Books

All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Strange error with SqlServer table mappings
PostPosted: Fri Dec 16, 2011 6:34 am 
Newbie

Joined: Fri Dec 16, 2011 5:25 am
Posts: 1
* using hibernate 3.2
i have three tables

These are the table names i have

1)ISSUE
2)ISSUE_LIFE
3)ISSUE_FUEL

My issue is that I'm able to load the tables 2,and 3 but when i try to load Table 1 i get errors.
strange ,if i change the name of the table 1 from ISSUE to something like ISSUE_TEST this works and able to load.

I cannot change the table1 name from ISSUE to something else, :( please help
Error
[JDBCExceptionReporter] SQL Error: 156, SQLState: S0001
[JDBCExceptionReporter] Incorrect syntax near the keyword 'ISSUE'.



I define the Entitiy mapping like this

Code:
@Entity
@Table(name = "ISSUE")
public class ISSUEEntity implements Serializable
{
   /**
    * rest of of the column getter setter goes here
    */
         
}

[code]@Entity
@Table(name = "ISSUE_LIFE")
public class LIFEISSUEEntity implements Serializable
{
   /**
    * rest of of the column getter setter goes here
    */
         
}

[code]@Entity
@Table(name = "ISSUE_FUEL")
public class FUELISSUEEntity implements Serializable
{
   /**
    * rest of of the column getter setter goes here
    */
         
}


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.