Java Reference
In-Depth Information
public void setDate(Date date) { = date;
public double getHours() {
return hours;
public void setHours(double hours) {
this.hours = hours;
Note GWT serialization is a little different from the Java Serializable interface. Check out the GWT
Developer's Guide for details on the differences and reasons behind them.
TimeEntryEntity JDO Class
Your TimeEntryData POJO is transferred across the wire to your server and is
deserialized automatically. For flexibility, you're going to create the JDO class in
Listing 7-5 for persisting your instances to the datastore.
Listing 7-5. The code for your JDO class,
package com.appirio.timeentry.server;
import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;
import java.util.Date;
@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class TimeEntryEntity {
@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
Search WWH ::

Custom Search