• Post Reply Bookmark Topic Watch Topic
  • New Topic

generating jPA entites with several schemas correctly

 
mariyam saeed
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am facing the same problem llike this

http://stackoverflow.com/questions/19766155/is-there-any-way-to-generate-jpa-entities-correctly-of-several-schemas

how to solve this
i am using netbeans and i have followed like this
1.creating entities from database
2.creating restful web service from entiies
3.creating restful javascript client from restful web service

the foriegn key table which have different schema


the foriegn key table which have same schema (which is the correct way)
 
Roel De Nijs
Sheriff
Posts: 10763
148
AngularJS Chrome Eclipse IDE Hibernate Java jQuery MySQL Database Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
mariyam saeed wrote:how to solve this

Did you try the suggested work-around?

And it seems this can be done using Spring Roo using the Incremental Database Reverse Engineering (DBRE) Add-On:
You can also reverse engineer more than one schema by specifying a doubled-quoted space-separated list of schemas. Reverse engineering of foreign-key releationships between tables in different schemas is supported. For example:
This will reverse engineer all tables from schemas "schema1", "schema2", and "schema3".


Hope it helps!
Kind regards,
Roel
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!