I'm wondering if it is possible to derive Data Entity Classes from an existing database. So to take it the other way around - not generating the database schema from the entity classes but the entity classes from a database. Is that somehow possible?

asked 19.12.2013 at 11:49

Nikel%20Weis's gravatar image

Nikel Weis
(suspended)
accept rate: 57%


You can use a plugin like Eclipse Dali to do the trick for you. You can refer to the documentation, section 3.11 Generating Entities from Tables.

PS: the plugin does not work with XpertIvy-you need a seperate Eclipse Installation.

link

answered 19.12.2013 at 12:54

Daniel%20Oechslin's gravatar image

Daniel Oechslin
(suspended)
accept rate: 39%

edited 19.12.2013 at 12:56

Just found out myself: It is not possible to generate entity classes automatically. But what is possible, is to generate an entity class using existing tables and define the correct table fields mapped to the objects attribute. So no new schema needs to be generated/modified.

link

answered 19.12.2013 at 12:33

Nikel%20Weis's gravatar image

Nikel Weis
(suspended)
accept rate: 57%

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×5

Asked: 19.12.2013 at 11:49

Seen: 2,872 times

Last updated: 19.12.2013 at 12:56