-->
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: Weird Problem: Hibernate table name added with extra info
PostPosted: Fri May 20, 2016 2:12 pm 
Newbie

Joined: Fri May 20, 2016 1:59 pm
Posts: 1
I have a webapp runs on tomcat, but when try to login the app throws an exception, check the SQL it's generated it's like this

Hibernate:
/*
from
Users as model
where
model.username= ? *

/ select
users0_.id as id0_,
users0_.username as username0_,
users0_.password as password0_
from
comm.cis.users users0_
where
users0_.username=?

the table name users has .cis after the database name, how does this "cis" get inserted in the table name. this is mySQL database.

I installed the apps on another pc, same code runs fine the query like this, no error, what cause this problem, how does hibernate generates the table name? appreciated any help.

select
users0_.id as id0_,
users0_.username as username0_,
users0_.password as password0_
from
comm.users users0_
where
users0_.username=?


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.