Hai all,
i'm a newbie in hibernate..
now i've a problem with hibernate.
how to show database field in my application with hibernate.
nowadays, i've a POJO class in my program
Code:
package org.blueoxygen.aconix.entity;
import javax.persistence.Entity;
import javax.persistence.Inheritance;
import javax.persistence.Table;
import javax.persistence.InheritanceType;
import org.blueoxygen.cimande.DefaultPersistence;
/**
* @author SiLeNT~SkY
*
*/
@Entity()
@Table(name="article")
@Inheritance(strategy=InheritanceType.SINGLE_TABLE)
public class Article extends DefaultPersistence {
private String title;
private String abstract;
private String Description;
// getter and setter for entity
}
I'm using POJO to generate database.
and my problem now is how to take the field from database.
because my field's name is different with the entity's name in POJO.
when i'm trying to search in browser, i've found metadata in package org.hibernate.metadata , but i dont know how to use it.
anyone can help me?
Thank you