Hey i got a serialization error in my prject... just don t konw why may be sb can help me.
if (listSvc == null) {
listSvc = GWT.create(ListServices.class);
}
// Set up the callback object.
AsyncCallback<BestellungDTO> callback = new AsyncCallback<BestellungDTO>()
{
public void onFailure(Throwable caught) {
caught.printStackTrace();
Window.alert("A failure occured");
}
@Override
public void onSuccess(BestellungDTO result) {
Window.alert("Order Okay");
confirmOrder.hide();
}
};
//Call the data
-----> listSvc.saveOrder(
Login.warenkorb.getBest() , lfGesamtpreis, callback);
/**
*
*/
package project.client.data;
import java.io.Serializable;
import java.util.Date;
import java.util.HashSet;
import java.util.Set;
/**
* @author Vincenz M�ssenb�ck
*
*/
public class BestellungDTO implements Serializable{
/**
*
*/
private static final long serialVersionUID = 1L;
private long ID;
private Set<BestellpositionDTO> alBestellpositionDTO;
private KundeDTO oKundeDTO;
private ZahlungsformDTO oZahlungsformDTO;
private Date dateBestelldatum;
private KundenstatistikDTO oKundenstatistikDTO;
public BestellungDTO() {
alBestellpositionDTO = new HashSet<BestellpositionDTO>();
dateBestelldatum = new Date();
}
public BestellungDTO(Set<BestellpositionDTO> alBestellpositionDTO, KundeDTO oKundeDTO, ZahlungsformDTO oZahlungsformDTO) {
this.alBestellpositionDTO = alBestellpositionDTO;
this.oKundeDTO = oKundeDTO;
this.oZahlungsformDTO = oZahlungsformDTO;
dateBestelldatum = new Date();
}
public long getID() {
return ID;
}
public void setID(long ID) {
this.ID = ID;
}
public Set<BestellpositionDTO> getalBestellpositionDTO() {
return alBestellpositionDTO;
}
public void setalBestellpositionDTO(Set<BestellpositionDTO> alBestellpositionDTO) {
this.alBestellpositionDTO = alBestellpositionDTO;
}
public Date getDateBestelldatum() {
return dateBestelldatum;
}
public void setDateBestelldatum(Date dateBestelldatum) {
this.dateBestelldatum = dateBestelldatum;
}
public KundeDTO getoKundeDTO() {
return oKundeDTO;
}
public void setoKundeDTO(KundeDTO oKundeDTO) {
this.oKundeDTO = oKundeDTO;
}
/**
* @return the oZahlungsformDTO
*/
public ZahlungsformDTO getoZahlungsformDTO() {
return oZahlungsformDTO;
}
/**
* @param oZahlungsformDTO the oZahlungsformDTO to set
*/
public void setoZahlungsformDTO(ZahlungsformDTO oZahlungsformDTO) {
this.oZahlungsformDTO = oZahlungsformDTO;
}
public KundenstatistikDTO getoKundenstatistikDTO() {
return oKundenstatistikDTO;
}
public void setoKundenstatistikDTO(KundenstatistikDTO oKundenstatistikDTO) {
this.oKundenstatistikDTO = oKundenstatistikDTO;
}
}
hope i can get some help from you just don t konw what 2 do anymore nearly same thing works in other part of the code without problems