· 8 years ago · Feb 25, 2018, 11:14 AM
1create table IF NOT EXISTS Inscribe (
2cod_curso int,
3cod_persona int,
4fech_inscripcion date,
5constraint pk_inscribe primary key(cod_curso,cod_persona),
6constraint fk_inscribe_curso foreign key (cod_curso)
7 references Curso(cod_curso)
8 on delete no action on update cascade,
9constraint fk_inscribe_persona foreign key (cod_persona)
10 references Persona(cod_persona)
11 on delete no action on update cascade
12);
13
14Exception Description: An exception was thrown while searching for persistence archives with ClassLoader: WebappClassLoader
15context: ProyetoGeneral
16delegate: false
17----------> Parent Classloader:
18java.net.URLClassLoader@3af49f1c
19
20Internal Exception: javax.persistence.PersistenceException: Exception [EclipseLink-28018] (Eclipse Persistence Services - 2.5.2.v20140319-9ad6abd): org.eclipse.persistence.exceptions.EntityManagerSetupException
21Exception Description: Predeployment of PersistenceUnit [ProyetoGeneralPU] failed.
22Internal Exception: Exception [EclipseLink-7220] (Eclipse Persistence Services - 2.5.2.v20140319-9ad6abd): org.eclipse.persistence.exceptions.ValidationException
23Exception Description: The @JoinColumns on the annotated element [field curso] from the entity class [class DTO.Inscribe] is incomplete. When the source entity class uses a composite primary key, a @JoinColumn must be specified for each join column using the @JoinColumns. Both the name and the referencedColumnName elements must be specified in each such @JoinColumn.