A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
JavaRanch
»
Java Forums
»
Databases
»
Object Relational Mapping
Author
Hibernate Mapping same schema
James Hsiao
Greenhorn
Joined: Dec 12, 2012
Posts: 1
posted
Dec 12, 2012 16:16:04
0
have a hibernate project, and many database tables with the same schema. I am trying to map it to one single entity bean is that possible?
My Entity beans looks something like this.
@Entity public class table1{ @Id @Column(name="name") private String name; @Column(name="age") private String age; //getters setters }
Bill Gorder
Bartender
Joined: Mar 07, 2010
Posts: 1282
I like...
posted
Dec 12, 2012 17:43:40
0
Have a look at
http://www.coderanch.com/t/492558/ORM/databases/Mapping-POJO-table-Hibernate-XML
and
http://www.coderanch.com/t/598699/ORM/databases/commit-transaction-multi-databases-schema
[
How To Ask Questions
][
Read before you PM me
]
I agree. Here's the link:
http://aspose.com/file-tools
subject: Hibernate Mapping same schema
Similar Threads
Not-unique unique column
How to query a value typed object
Hibernate: adding underscore to attibute names
Why? uniqueConstraints is not working!
Hibernate, Inheritance of entities.. One table too much..
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter