-->
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: Get data help
PostPosted: Thu Oct 16, 2014 4:13 pm 
Newbie

Joined: Thu Oct 16, 2014 3:48 pm
Posts: 1
Hello dear users,
At first sorry please for my very simple question, but as a beginner in hibernate world I need your help.
I have a class with annotation and want to get data from data base.

Code:
@Entity
@Table(name = "name")
public myClass {


@Id @GeneratedValue
   @Column(name = "id")
   private int id;
@Column(name = "first_name")
   private String firstName;

   @Column(name = "last_name")
   private String lastName;

here getters and setters
}


I have configured data base connection (mysql) application context etc…
Just don’t know how to get name and last name from data base table name.
Could someone help me please?
Thanks in advance


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.