2 Replies Latest reply: Sep 27, 2012 3:05 AM by gimbal2 RSS

    creating mysql schema from pojo with hibernate using netbeans

    964392
      I have been fortunate in finding some good tutorials on how to create POJOs from database schema using hibernate (e.g. http://netbeans.org/kb/docs/web/hibernate-webapp.html).

      Does anyone know of tutorials on creating database schemas from POJOs -- preferable using netbeans? Even the very smallest tutorial with one table or two related tables will do.
        • 1. Re: creating mysql schema from pojo with hibernate using netbeans
          Kayaman
          961389 wrote:
          I have been fortunate
          Not really, that is not rare information.
          Does anyone know of tutorials on creating database schemas from POJOs -- preferable using netbeans? Even the very smallest tutorial with one table or two related tables will do.
          Netbeans has little to do with the creation of the schema, it's the container that's usually configured to do it. You can use the "hibernate.hbm2ddl.auto" property to control whether the DDL is created from the entities automatically.
          • 2. Re: creating mysql schema from pojo with hibernate using netbeans
            gimbal2
            your main mistake here seems to be that you think that Netbeans is your programming language - it is not, it is only your integrated development environment, a tool, a means to an end. If you want information about Hibernate you go look on the Hibernate website, not the Netbeans website.