- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
使用 hibernate 工具从数据库表(sql server)生成我的 Pojo 类后,我遇到了主键都是唯一标识符的问题,经过对代码的多次研究和修改,我终于得到了这个异常,我找不到解决方案,这里是一个 Pojo 类的示例(所有 id 在其他 pojo 中都声明为相同)
package model;
// Generated Apr 4, 2014 9:12:15 AM by Hibernate Tools 3.4.0.CR1
import java.io.Serializable;
import java.util.Date;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.UniqueConstraint;
import org.hibernate.annotations.GenericGenerator;
/**
* Affectation generated by hbm2java
*/
@Entity
@Table(name = "Affectation", schema = "dbo", catalog = "TSIERP", uniqueConstraints = @UniqueConstraint(columnNames = "Code"))
public class Affectation implements java.io.Serializable {
private String uid;
private Date dateModif;
private Serializable modifUser;
private Serializable creationUser;
private Serializable libelle;
private Boolean valid;
private Date dateSaisie;
private Serializable code;
private Integer nbrMission;
private Double pourcentage;
private Serializable observation;
private String structure;
private Serializable responsable;
private Serializable libelleAr;
private Serializable libelleFr;
private Serializable observationAr;
private Serializable observationFr;
private String compteComptableAchat;
private String compteComptableVente;
private Serializable typeAffectation;
private Boolean suiviStock;
private Boolean vehicule;
private String lieuAffectation;
private Set<Personne> personnes = new HashSet<Personne>(0);
public Affectation() {
}
public Affectation(String uid) {
this.uid = uid;
}
public Affectation(String uid, Date dateModif, Serializable modifUser,
Serializable creationUser, Serializable libelle, Boolean valid,
Date dateSaisie, Serializable code, Integer nbrMission,
Double pourcentage, Serializable observation, String structure,
Serializable responsable, Serializable libelleAr,
Serializable libelleFr, Serializable observationAr,
Serializable observationFr, String compteComptableAchat,
String compteComptableVente, Serializable typeAffectation,
Boolean suiviStock, Boolean vehicule, String lieuAffectation,
Set<Personne> personnes) {
this.uid = uid;
this.dateModif = dateModif;
this.modifUser = modifUser;
this.creationUser = creationUser;
this.libelle = libelle;
this.valid = valid;
this.dateSaisie = dateSaisie;
this.code = code;
this.nbrMission = nbrMission;
this.pourcentage = pourcentage;
this.observation = observation;
this.structure = structure;
this.responsable = responsable;
this.libelleAr = libelleAr;
this.libelleFr = libelleFr;
this.observationAr = observationAr;
this.observationFr = observationFr;
this.compteComptableAchat = compteComptableAchat;
this.compteComptableVente = compteComptableVente;
this.typeAffectation = typeAffectation;
this.suiviStock = suiviStock;
this.vehicule = vehicule;
this.lieuAffectation = lieuAffectation;
this.personnes = personnes;
}
@Id
@GeneratedValue(generator = "uuid")
@GenericGenerator(name = "uuid", strategy = "uuid")
@Column(name = "UID", unique = true,nullable = false, length = 36)
public String getUid() {
return this.uid;
}
public void setUid(String uid) {
this.uid = uid;
}
@Temporal(TemporalType.TIMESTAMP)
@Column(name = "DateModif", length = 23)
public Date getDateModif() {
return this.dateModif;
}
public void setDateModif(Date dateModif) {
this.dateModif = dateModif;
}
@Column(name = "ModifUser")
public Serializable getModifUser() {
return this.modifUser;
}
public void setModifUser(Serializable modifUser) {
this.modifUser = modifUser;
}
@Column(name = "CreationUser")
public Serializable getCreationUser() {
return this.creationUser;
}
public void setCreationUser(Serializable creationUser) {
this.creationUser = creationUser;
}
@Column(name = "Libelle")
public Serializable getLibelle() {
return this.libelle;
}
public void setLibelle(Serializable libelle) {
this.libelle = libelle;
}
@Column(name = "Valid")
public Boolean getValid() {
return this.valid;
}
public void setValid(Boolean valid) {
this.valid = valid;
}
@Temporal(TemporalType.TIMESTAMP)
@Column(name = "DateSaisie", length = 23)
public Date getDateSaisie() {
return this.dateSaisie;
}
public void setDateSaisie(Date dateSaisie) {
this.dateSaisie = dateSaisie;
}
@Column(name = "Code", unique = true)
public Serializable getCode() {
return this.code;
}
public void setCode(Serializable code) {
this.code = code;
}
@Column(name = "NbrMission")
public Integer getNbrMission() {
return this.nbrMission;
}
public void setNbrMission(Integer nbrMission) {
this.nbrMission = nbrMission;
}
@Column(name = "Pourcentage", precision = 53, scale = 0)
public Double getPourcentage() {
return this.pourcentage;
}
public void setPourcentage(Double pourcentage) {
this.pourcentage = pourcentage;
}
@Column(name = "Observation")
public Serializable getObservation() {
return this.observation;
}
public void setObservation(Serializable observation) {
this.observation = observation;
}
@Column(name = "Structure", length = 36)
public String getStructure() {
return this.structure;
}
public void setStructure(String structure) {
this.structure = structure;
}
@Column(name = "Responsable")
public Serializable getResponsable() {
return this.responsable;
}
public void setResponsable(Serializable responsable) {
this.responsable = responsable;
}
@Column(name = "LibelleAR")
public Serializable getLibelleAr() {
return this.libelleAr;
}
public void setLibelleAr(Serializable libelleAr) {
this.libelleAr = libelleAr;
}
@Column(name = "LibelleFR")
public Serializable getLibelleFr() {
return this.libelleFr;
}
public void setLibelleFr(Serializable libelleFr) {
this.libelleFr = libelleFr;
}
@Column(name = "ObservationAR")
public Serializable getObservationAr() {
return this.observationAr;
}
public void setObservationAr(Serializable observationAr) {
this.observationAr = observationAr;
}
@Column(name = "ObservationFR")
public Serializable getObservationFr() {
return this.observationFr;
}
public void setObservationFr(Serializable observationFr) {
this.observationFr = observationFr;
}
@Column(name = "CompteComptableAchat", length = 36)
public String getCompteComptableAchat() {
return this.compteComptableAchat;
}
public void setCompteComptableAchat(String compteComptableAchat) {
this.compteComptableAchat = compteComptableAchat;
}
@Column(name = "CompteComptableVente", length = 36)
public String getCompteComptableVente() {
return this.compteComptableVente;
}
public void setCompteComptableVente(String compteComptableVente) {
this.compteComptableVente = compteComptableVente;
}
@Column(name = "TypeAffectation")
public Serializable getTypeAffectation() {
return this.typeAffectation;
}
public void setTypeAffectation(Serializable typeAffectation) {
this.typeAffectation = typeAffectation;
}
@Column(name = "SuiviStock")
public Boolean getSuiviStock() {
return this.suiviStock;
}
public void setSuiviStock(Boolean suiviStock) {
this.suiviStock = suiviStock;
}
@Column(name = "Vehicule")
public Boolean getVehicule() {
return this.vehicule;
}
public void setVehicule(Boolean vehicule) {
this.vehicule = vehicule;
}
@Column(name = "LieuAffectation", length = 36)
public String getLieuAffectation() {
return this.lieuAffectation;
}
public void setLieuAffectation(String lieuAffectation) {
this.lieuAffectation = lieuAffectation;
}
@OneToMany(fetch = FetchType.LAZY, mappedBy = "affectation")
public Set<Personne> getPersonnes() {
return this.personnes;
}
public void setPersonnes(Set<Personne> personnes) {
this.personnes = personnes;
}
}
这是我得到的异常(exception)
SEVERE: Servlet.service() for servlet [action] in context with path [/Projet] threw exception [Request processing failed; nested exception is org.hibernate.type.SerializationException: could not deserialize] with root cause
java.io.StreamCorruptedException: invalid stream header: 30003100
at java.io.ObjectInputStream.readStreamHeader(Unknown Source)
at java.io.ObjectInputStream.<init>(Unknown Source)
at org.hibernate.util.SerializationHelper$CustomObjectInputStream.<init>(SerializationHelper.java:252)
at org.hibernate.util.SerializationHelper.deserialize(SerializationHelper.java:209)
at org.hibernate.util.SerializationHelper.deserialize(SerializationHelper.java:240)
at org.hibernate.type.SerializableType.fromBytes(SerializableType.java:82)
at org.hibernate.type.SerializableType.get(SerializableType.java:39)
at org.hibernate.type.NullableType.nullSafeGet(NullableType.java:163)
at org.hibernate.type.NullableType.nullSafeGet(NullableType.java:154)
at org.hibernate.type.AbstractType.hydrate(AbstractType.java:81)
at org.hibernate.persister.entity.AbstractEntityPersister.hydrate(AbstractEntityPersister.java:2101)
at org.hibernate.loader.Loader.loadFromResultSet(Loader.java:1380)
at org.hibernate.loader.Loader.instanceNotYetLoaded(Loader.java:1308)
at org.hibernate.loader.Loader.getRow(Loader.java:1206)
at org.hibernate.loader.Loader.getRowFromResultSet(Loader.java:580)
at org.hibernate.loader.Loader.doQuery(Loader.java:701)
at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:236)
at org.hibernate.loader.Loader.doList(Loader.java:2213)
at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2104)
at org.hibernate.loader.Loader.list(Loader.java:2099)
at org.hibernate.loader.custom.CustomLoader.list(CustomLoader.java:289)
at org.hibernate.impl.SessionImpl.listCustomQuery(SessionImpl.java:1695)
at org.hibernate.impl.AbstractSessionImpl.list(AbstractSessionImpl.java:142)
at org.hibernate.impl.SQLQueryImpl.list(SQLQueryImpl.java:152)
at dao.affectation.AffectationImpl.getAll(AffectationImpl.java:29)
at services.affectation.AffectationMetierImpl.getAll(AffectationMetierImpl.java:29)
at controllers.NRubriquesPaieController.AffichageRapport(NRubriquesPaieController.java:69)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(HandlerMethodInvoker.java:176)
at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.invokeHandlerMethod(AnnotationMethodHandlerAdapter.java:440)
at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.handle(AnnotationMethodHandlerAdapter.java:428)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:925)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:856)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:936)
at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:838)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:646)
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:812)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:118)
at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:84)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:113)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:103)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:113)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:154)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:45)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
at org.springframework.security.web.authentication.www.BasicAuthenticationFilter.doFilter(BasicAuthenticationFilter.java:150)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:199)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:110)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
at org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter.doFilterInternal(WebAsyncManagerIntegrationFilter.java:50)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:87)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:192)
at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:160)
at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:343)
at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:260)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1040)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:315)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
我希望你能帮助我解决这个问题,我一直在寻找太久,只是不知道现在该怎么办。
最佳答案
我终于通过将类型 Serialized 更改为 String 解决了这个问题,我不知道为什么,但是 hibernate 工具出错了,我希望我通过发布这个来帮助别人,这确实是一个愚蠢的异常(exception),但它花了我时间解决时间。
package model;
// Generated Apr 4, 2014 9:12:15 AM by Hibernate Tools 3.4.0.CR1
import java.io.Serializable;
import java.util.Date;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.UniqueConstraint;
import org.hibernate.annotations.GenericGenerator;
/**
* Affectation generated by hbm2java
*/
@Entity
@Table(name = "Affectation", schema = "dbo", catalog = "TSIERP", uniqueConstraints = @UniqueConstraint(columnNames = "Code"))
public class Affectation implements java.io.Serializable {
private String uid;
private Date dateModif;
private String modifUser;
private String creationUser;
private String libelle;
private Boolean valid;
private Date dateSaisie;
private String code;
private Integer nbrMission;
private Double pourcentage;
private String observation;
private String structure;
private String responsable;
private String libelleAr;
private String libelleFr;
private String observationAr;
private String observationFr;
private String compteComptableAchat;
private String compteComptableVente;
private String typeAffectation;
private Boolean suiviStock;
private Boolean vehicule;
private String lieuAffectation;
private Set<Personne> personnes = new HashSet<Personne>(0);
public Affectation() {
}
public Affectation(String uid) {
this.uid = uid;
}
public Affectation(String uid, Date dateModif, String modifUser,
String creationUser, String libelle, Boolean valid,
Date dateSaisie, String code, Integer nbrMission,
Double pourcentage, String observation, String structure,
String responsable, String libelleAr,
String libelleFr, String observationAr,
String observationFr, String compteComptableAchat,
String compteComptableVente, String typeAffectation,
Boolean suiviStock, Boolean vehicule, String lieuAffectation,
Set<Personne> personnes) {
this.uid = uid;
this.dateModif = dateModif;
this.modifUser = modifUser;
this.creationUser = creationUser;
this.libelle = libelle;
this.valid = valid;
this.dateSaisie = dateSaisie;
this.code = code;
this.nbrMission = nbrMission;
this.pourcentage = pourcentage;
this.observation = observation;
this.structure = structure;
this.responsable = responsable;
this.libelleAr = libelleAr;
this.libelleFr = libelleFr;
this.observationAr = observationAr;
this.observationFr = observationFr;
this.compteComptableAchat = compteComptableAchat;
this.compteComptableVente = compteComptableVente;
this.typeAffectation = typeAffectation;
this.suiviStock = suiviStock;
this.vehicule = vehicule;
this.lieuAffectation = lieuAffectation;
this.personnes = personnes;
}
@Id
@GenericGenerator(name = "generator", strategy = "guid", parameters = {})
@GeneratedValue(generator = "generator")
@Column(name = "UID", unique = true,nullable = false, length = 36, columnDefinition="uniqueidentifier")
public String getUid() {
return this.uid;
}
public void setUid(String uid) {
this.uid = uid;
}
@Temporal(TemporalType.TIMESTAMP)
@Column(name = "DateModif", length = 23)
public Date getDateModif() {
return this.dateModif;
}
public void setDateModif(Date dateModif) {
this.dateModif = dateModif;
}
@Column(name = "ModifUser")
public String getModifUser() {
return this.modifUser;
}
public void setModifUser(String modifUser) {
this.modifUser = modifUser;
}
@Column(name = "CreationUser")
public String getCreationUser() {
return this.creationUser;
}
public void setCreationUser(String creationUser) {
this.creationUser = creationUser;
}
@Column(name = "Libelle")
public String getLibelle() {
return this.libelle;
}
public void setLibelle(String libelle) {
this.libelle = libelle;
}
@Column(name = "Valid")
public Boolean getValid() {
return this.valid;
}
public void setValid(Boolean valid) {
this.valid = valid;
}
@Temporal(TemporalType.TIMESTAMP)
@Column(name = "DateSaisie", length = 23)
public Date getDateSaisie() {
return this.dateSaisie;
}
public void setDateSaisie(Date dateSaisie) {
this.dateSaisie = dateSaisie;
}
@Column(name = "Code", unique = true)
public String getCode() {
return this.code;
}
public void setCode(String code) {
this.code = code;
}
@Column(name = "NbrMission")
public Integer getNbrMission() {
return this.nbrMission;
}
public void setNbrMission(Integer nbrMission) {
this.nbrMission = nbrMission;
}
@Column(name = "Pourcentage", precision = 53, scale = 0)
public Double getPourcentage() {
return this.pourcentage;
}
public void setPourcentage(Double pourcentage) {
this.pourcentage = pourcentage;
}
@Column(name = "Observation")
public String getObservation() {
return this.observation;
}
public void setObservation(String observation) {
this.observation = observation;
}
@Column(name = "Structure", length = 36)
public String getStructure() {
return this.structure;
}
public void setStructure(String structure) {
this.structure = structure;
}
@Column(name = "Responsable")
public String getResponsable() {
return this.responsable;
}
public void setResponsable(String responsable) {
this.responsable = responsable;
}
@Column(name = "LibelleAR")
public String getLibelleAr() {
return this.libelleAr;
}
public void setLibelleAr(String libelleAr) {
this.libelleAr = libelleAr;
}
@Column(name = "LibelleFR")
public String getLibelleFr() {
return this.libelleFr;
}
public void setLibelleFr(String libelleFr) {
this.libelleFr = libelleFr;
}
@Column(name = "ObservationAR")
public String getObservationAr() {
return this.observationAr;
}
public void setObservationAr(String observationAr) {
this.observationAr = observationAr;
}
@Column(name = "ObservationFR")
public String getObservationFr() {
return this.observationFr;
}
public void setObservationFr(String observationFr) {
this.observationFr = observationFr;
}
@Column(name = "CompteComptableAchat", length = 36)
public String getCompteComptableAchat() {
return this.compteComptableAchat;
}
public void setCompteComptableAchat(String compteComptableAchat) {
this.compteComptableAchat = compteComptableAchat;
}
@Column(name = "CompteComptableVente", length = 36)
public String getCompteComptableVente() {
return this.compteComptableVente;
}
public void setCompteComptableVente(String compteComptableVente) {
this.compteComptableVente = compteComptableVente;
}
@Column(name = "TypeAffectation")
public String getTypeAffectation() {
return this.typeAffectation;
}
public void setTypeAffectation(String typeAffectation) {
this.typeAffectation = typeAffectation;
}
@Column(name = "SuiviStock")
public Boolean getSuiviStock() {
return this.suiviStock;
}
public void setSuiviStock(Boolean suiviStock) {
this.suiviStock = suiviStock;
}
@Column(name = "Vehicule")
public Boolean getVehicule() {
return this.vehicule;
}
public void setVehicule(Boolean vehicule) {
this.vehicule = vehicule;
}
@Column(name = "LieuAffectation", length = 36)
public String getLieuAffectation() {
return this.lieuAffectation;
}
public void setLieuAffectation(String lieuAffectation) {
this.lieuAffectation = lieuAffectation;
}
@OneToMany(fetch = FetchType.LAZY, mappedBy = "affectation")
public Set<Personne> getPersonnes() {
return this.personnes;
}
public void setPersonnes(Set<Personne> personnes) {
this.personnes = personnes;
}
}
关于hibernate - 无法反序列化 + 无效的流 header : 30003100,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22858265/
我是 python 的新手。我试图找到我的文本的频率分布。这是代码, import nltk nltk.download() import os os.getcwd() text_file=open(
我对安卓 fragment 感到困惑。我知道内存 fragment 但无法理解什么是 android fragment 问题。虽然我发现很多定义,比如 Android fragmentation re
尝试对 WordPress 进行 dockerise 我发现了这个场景: 2个数据卷容器,一个用于数据库(bbdd),另一个用于wordpress文件(wordpress): sudo docker
这个问题已经有答案了: From the server is there a way to know that my page is being loaded in an Iframe (1 个回答)
我正在玩小型服务器,试图对运行在其上的服务进行docker化。为简化起见,假设我必须主要处理:Wordpress和另一项服务。 在Docker集线器上有许多用于Wordpress的图像,但是它们似乎都
我想要发生的是,当帐户成功创建后,提交的表单应该消失,并且应该出现一条消息(取决于注册的状态)。 如果成功,他们应该会看到一个简单的“谢谢。请检查您的电子邮件。” 如果不是,那么他们应该会看到一条适当
就是这样,我需要为客户添加一个唯一标识符。通过 strip 元数据。这就是我现在完全构建它的方式,但是我只有最后一部分告诉我用户购买了哪个包。 我试着看这里: Plans to stripe 代码在这
我有一个类将执行一些复杂的操作,涉及像这样的一些计算: public class ComplexAction { public void someAction(String parameter
这个问题已经有答案了: maven add a local classes directory to module's classpath (1 个回答) 已关闭10 年前。 我有一些不应更改的旧 E
我使用 fragment 已经有一段时间了,但我经常遇到一个让我烦恼的问题。 fragment 有时会相互吸引。现在,我设法为此隔离了一个用例,它是这样的: Add fragment A(也使用 ad
我的 html 中有一个 ol 列表,上面有行条纹。看起来行条纹是从数字后面开始的。有没有办法让行条纹从数字开始? 我已经包含了正在发生的事情的片段 h4:nth-child(even) {
如何仅使用 css 将附加图像 html 化? 如果用纯 css 做不到,那我怎么能至少用一个图像来做 最佳答案 这不是真正的问题,而是您希望我们为您编写代码。我建议您搜索“css breadcrum
以下是 Joshua 的 Effective Java 的摘录: If you do synchronize your class internally, you can use various te
在这里工作时,我们有一个框向业务合作伙伴提供 XML 提要。对我们的提要的请求是通过指定查询字符串参数和值来定制的。其中一些参数是必需的,但很多不是。 例如,我们要求所有请求都指定一个 GUID 来标
我有 3 个缓冲区,其中包含在 32 位处理器上运行的 R、G、B 位数据。 我需要按以下方式组合三个字节: R[0] = 0b r1r2r3r4r5r6r7r8 G[0] = 0b g1g2g3g4
我最近发现了关于如何使用 History.js、jQuery 和 ScrollTo 通过 HTML5 History API 对网站进行 Ajax 化的要点:https://github.com/br
我们有一个 Spring Boot 应用程序,由于集成需要,它变得越来越复杂——比如在你这样做之后发送一封电子邮件,或者在你之后广播一条 jms 消息等等。在寻找一些更高级别的抽象时,我遇到了 apa
我正在尝试首次实施Google Pay。我面临如何指定gateway和gatewayMarchantId的挑战。 我所拥有的是google console帐户,不知道在哪里可以找到此信息。 priva
昨天下午 3 点左右,我为两个想要从一个 Azure 帐户转移到另一个帐户的网站设置了 awverify 记录。到当天结束时,Azure 仍然不允许我添加域,所以我赌了一把,将域和 www 子域重新指
我正在使用terms facet在elasticsearch服务器中获取顶级terms。现在,我的标签"indian-government"不被视为一个标签。将其视为"indian" "governm
我是一名优秀的程序员,十分优秀!