Anotaciones de BD

parent a33575f0
package com.roshka.modelo;
import javax.persistence.*;
import java.util.Date;
@Entity
@Table(name="postulante")
public class Postulante {
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
private long id;
@Column(name="nombre")
private String nombre;
@Column(name = "apellido")
private String apellido;
@Column(name = "ci")
private String ci;
@Column(name = "correo")
private String correo;
@Column(name = "ciudad")
private String ciudad;
@Column(name = "telefono")
private String telefono;
@Column(name = "fecha_nacimiento")
private Date fechaNacimiento;
@Column(name = "resumen")
private String resumen;
@Column(name = "nivel_ingles")
private long nivelIngles;
@Column(name = "curriculum")
private String curriculum;
@Column(name = "modalidad")
private String modalidad;
@Column(name = "disponibilidad")
private String disponibilidad;
public long getId() {
......
spring.jpa.hibernate.ddl-auto=create-drop
spring.sql.init.mode=always
spring.sql.init.platform=postgres
spring.datasource.url=jdbc:postgresql://localhost:5432/thumano
spring.datasource.username=postgres
spring.datasource.password=postgres
spring.jpa.properties.hibernate.jdbc.lob.non_contextual_creation=true
server.port=8888
spring.mvc.view.prefix=/WEB-INF/views/
spring.mvc.view.suffix=.jsp
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment