-->
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.  [ 2 posts ] 
Author Message
 Post subject: Is it possible??
PostPosted: Fri Jan 20, 2006 10:15 am 
Newbie

Joined: Wed Dec 21, 2005 4:03 pm
Posts: 7
Location: Brazil - Fortaleza
Hello people,

In my DB there is no table BAIRRO2. So I'd like the hibernate give me the following message :"Table BAIRRO2 no exist in DB ".
Is it possible ??
Code:
@Entity(access = AccessType.PROPERTY)
@Table(name="BAIRRO2") 
public class Bairro
{
    private int id_bairro;

    public void setId_bairro(int id_bairro)
    {
        this.id_bairro = id_bairro;
    }
    @Id
    public int getId_bairro()
    {
        return id_bairro;
    }
}



thanks in advance


Top
 Profile  
 
 Post subject: Re: Is it possible??
PostPosted: Thu Feb 09, 2006 6:33 am 
Beginner
Beginner

Joined: Mon Jan 30, 2006 2:28 am
Posts: 47
Location: INDIA
Dirkant wrote:
Hello people,

In my DB there is no table BAIRRO2. So I'd like the hibernate give me the following message :"Table BAIRRO2 no exist in DB ".
Is it possible ??
Code:
@Entity(access = AccessType.PROPERTY)
@Table(name="BAIRRO2") 
public class Bairro
{
    private int id_bairro;

    public void setId_bairro(int id_bairro)
    {
        this.id_bairro = id_bairro;
    }
    @Id
    public int getId_bairro()
    {
        return id_bairro;
    }
}



thanks in advance


Hi,

Create the table and *.hbm.xml mapping files and use it

_________________
A.Edward Durai
"The things which are impossible with men are possible with God."


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

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.