This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.six.test; | |
import java.io.IOException; | |
import java.io.PrintWriter; | |
import javax.ejb.EJB; | |
import javax.servlet.ServletException; | |
import javax.servlet.annotation.WebServlet; | |
import javax.servlet.http.HttpServlet; | |
import javax.servlet.http.HttpServletRequest; | |
import javax.servlet.http.HttpServletResponse; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.six.test; | |
import javax.ejb.Stateless; | |
/** | |
* Esta clase es tan tonta que me da verguenza | |
* @author david | |
*/ | |
@Stateless | |
public class Renombrador { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.six.test; | |
import java.io.IOException; | |
import java.io.PrintWriter; | |
import javax.ejb.EJB; | |
import javax.servlet.ServletException; | |
import javax.servlet.annotation.WebServlet; | |
import javax.servlet.http.HttpServlet; | |
import javax.servlet.http.HttpServletRequest; | |
import javax.servlet.http.HttpServletResponse; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.six.test; | |
import javax.ejb.Stateless; | |
/** | |
* Esta clase es tan tonta que me da verguenza | |
* @author david | |
*/ | |
@Stateless | |
public class Renombrador { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.six.test; | |
import javax.persistence.EntityManager; | |
import javax.persistence.Query; | |
import com.six.model.entity.*; | |
import javax.ejb.EJB; | |
import javax.ejb.Stateless; | |
import javax.ejb.TransactionAttribute; | |
import javax.ejb.TransactionAttributeType; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.six.test; | |
import javax.persistence.EntityManager; | |
import com.six.model.entity.*; | |
import javax.ejb.Stateless; | |
import javax.ejb.TransactionAttribute; | |
import javax.ejb.TransactionAttributeType; | |
import javax.persistence.PersistenceContext; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.six.model.entity; | |
import java.io.Serializable; | |
import javax.persistence.*; | |
import static javax.persistence.CascadeType.*; | |
import java.util.Collection; | |
import java.util.ArrayList; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.six.model.entity; | |
import javax.persistence.*; | |
@Entity | |
@Table(name="ORDER_TABLE") | |
public class Order { | |
private int id; | |
private String address; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<link rel="stylesheet" href="http://gist.github.com/stylesheets/gist/embed.css"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Un ServerResource se instancia primero, usando el constructor vacio, por defecto. Después se llama al método | |
* init(Context, Request, Response) que hace un set de dichos atributos. Para interceptar dicha creación se tiene | |
* que sobrescribir el método doInit que, poe defecto, no hace nada. Hacemos esto para no tener que implementarlo | |
* en cada método (GET, POST, PUT...). | |
* | |
* @throws org.restlet.resource.ResourceException | |
* | |
*/ | |
@Override |
OlderNewer