@Entity
public class User extends Model {
@OneToMany(mappedBy="email", cascade=CascadeType.ALL)
public List photo;
@Email
@Required
@Unique
public String email;
@Required
public String passwordHash;
@Required
public String education;
@Required
public String fname;
@Required
public String lname;
@Required
public Date dob;
@Required
public String gender;
@Required
public String country;
@Required
public Long phone;
@Required
public String status;
@Required
public String jobtitle;
@Required
public String company;
@Required
public String industry;
@Required
public Date addDate;
public String needConfirmation;
public User(String email, String password, String fname,
String lname, Date dob, String gender, String country,
Long phone, String status, String education, String jobtitle, String company, String industry) {
//all initialization here
}
}
< /code>
Können Sie mir bitte sagen, wo ich falsch gehe
Playframework × 2289 < /p>
this is my photo class, and please tell me how can I allow JPA to generate my database
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package models;
import controllers.Users;
import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import play.db.jpa.Model;
/**
*
* @author nPandey
*/
@Entity
public class Photo extends Model{
public String photoname;
@ManyToOne
public User email;
public String owner;
public Photo(){
}
public Photo(User email, String photo){
this.photoname=photo;
this.email=email;
this.owner=email.email;
}
}
Sehen Sie dieses Problem nach dem Upgrade des Springboots auf 3.4.3 (automatisches Upgrade des Hibernate ORM 6.6.8-Finals).
Es gab kein Problem mit Springboot 3.2.3 (Hibernate orm 6.4....
Ich versuche, eine Anwendung auf einem Glassfish 4-Server auf meinem lokalen Computer bereitzustellen. Wenn ich die WAR-Datei in das Autodeploy-Verzeichnis kopiere, gibt das Glassfish-Protokoll...
Ich habe ein einfaches MAVEN-Projekt, das Spring-Boot-Starter-Web verwendet, aber beim Versuch, Abhängigkeiten für Hibernate abzurufen, wird ein Fehler ausgegeben.
Ich verwende Python, um ein Projekt zu automatisieren, bei dem mehrere DOCX-Dateien zu einer verkettet werden. Das Makro funktioniert perfekt in Word, aber wenn der Python-Code versucht, das Makro...