These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: duplicate table in the database
PostPosted: Tue Oct 05, 2010 9:29 pm 
Newbie

Joined: Sun Jul 18, 2010 9:17 am
Posts: 16
Hallo everyone,
I've made for my current project, a class and mapped using JPA. I have used local phpMyAdmin 3.2.0.1 and there is the table once appeared. Up here, I worked locally.
When I recorded the project in Tomcat manager Firmas, the table has been published twice (with the same name) written in small and large. The company uses phpMyAdmin 2.7.0.
Here's the code:
Code:
...
@Entity
@Table(name="UserTravelcosts")
@SequenceGenerator(name="user_generator", sequenceName="user_id_seq")
public class UserTravelCosts implements Serializable {

   private static final long serialVersionUID = -7114211999206149717L;
   
   @Id
   @GeneratedValue(strategy = GenerationType.IDENTITY, generator="user_generator")
    private Long id;
...
}


But I want a table, not two.
How can I make it?

Thanks in advance

Greetings
Luky


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 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.