package com.mvc4g.example.server;

import java.util.concurrent.atomic.AtomicInteger;

import com.google.gwt.user.server.rpc.RemoteServiceServlet;
import com.mvc4g.example.client.bean.UserBean;
import com.mvc4g.example.client.service.UserService;

@SuppressWarnings("serial")
public class UserServiceImpl extends RemoteServiceServlet implements UserService {

	private AtomicInteger idGenerator = new AtomicInteger( 0 );
	
	public UserBean create(UserBean user) {
		user.setId( idGenerator.incrementAndGet() );
		return user;
	}
}

@@ -3,25 +3,25 @@
 ckage com.mv
-c
+p
 4g.example.s
@@ -144,33 +144,33 @@
 t;%0Aimport com.mv
-c
+p
 4g.example.clien
@@ -199,17 +199,17 @@
 t com.mv
-c
+p
 4g.examp

rename mvc4g package to mvp4g