Giter Site home page Giter Site logo

eg-profesores-materias-hibernate-xtend's Introduction

Profesores y materias

Build Status Coverage Status

Prerrequisitos

Necesitás instalar un motor de base de datos relacional (te recomendamos MySQL que es OpenSource y gratuito)

Objetivo

Testea el mapeo objetos-relacional con Hibernate. El ejemplo muestra cómo modelar la relación muchos a muchos entre profesores y materias.

  • En MySQL: hay que crear una base de datos facultad. No hay que correr los scripts, las tablas se recrean cada vez que se corran los tests en xtend.
CREATE SCHEMA facultad;
  • Levantar el proyecto de Xtend en base a un "Existing Maven Project"

Antes de ejecutarlo, entrá al recurso hibernate.cfg.xml (Ctrl + Shift + R > tipeá hibernate y te aparece) y cambiá la contraseña de root de tu base

<property name="hibernate.connection.password">xxxxx</property>

Si vas a ponerle otro nombre al esquema (base de datos), tenés que modificar la configuración del hibernate.cfg.xml para que apunte allí:

<property name="hibernate.connection.url">jdbc:mysql://localhost/facultad</property>

Diagrama entidad-relación

Solución

eg-profesores-materias-hibernate-xtend's People

Contributors

fdodino avatar

Watchers

Franco Leonardo Bulgarelli avatar Deby avatar James Cloos avatar Federico Scarpa avatar Ernesto Bossi avatar  avatar Juan José Contardo avatar  avatar Leo Gassman avatar Javier Fernandes avatar Nico Passerini avatar Alejandro Dini avatar Julian Karp avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.