0

sorry about this question not having much data, but i am lost, and thought if anywhere this place might be able to help me

i am trying to use entities to create tables in a database rather than creating the database first then creating the entities, all the examples etc on the internet i have found for netbeans show only to create the entities from a pre existing database, it is a requirement that i create the database from the entities

how can i achieve this

i am running Netbeans 7.4, it is a JSF web app and the database is derby

Thanks guys, again sorry for the poor question but don't know where else to look

1 Answer 1

1

Consider starting to read a Hibernate documentation, it help you a lot in start discovering how you can create the schema from the entitites.

http://docs.jboss.org/hibernate/orm/4.3/manual/en-US/html/

Also once you know how to use a little bit hibernate is a good starting point to start learning JPA annotations.

http://docs.oracle.com/javaee/6/tutorial/doc/bnbpz.html

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.