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
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.


answered 19.12.2013 at 12:54

Daniel%20Oechslin's gravatar image

Daniel Oechslin
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.


answered 19.12.2013 at 12:33

Nikel%20Weis's gravatar image

Nikel Weis
accept rate: 57%

Your answer
toggle preview

Follow this question

By Email:

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



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



Asked: 19.12.2013 at 11:49

Seen: 1,729 times

Last updated: 19.12.2013 at 12:56