Dejo link de un curso muy interesante de scala:
Y de yapa un libro de lift: http://simply.liftweb.net/index.html
@Override
public boolean equals(Object obj) {
if (obj == null)
return false;
if (obj == this)
return true;
if (!obj.getClass().isAssignableFrom(getClass()))
return false;
Author otherAuthor = (Author) obj;
return new EqualsBuilder().append(this.user, otherAuthor.getUser())
.isEquals();
}
@Override
public boolean equals(Object obj) {
if (obj == null)
return false;
if (obj == this)
return true;
if (!obj.getClass().isAssignableFrom(getClass()))
return false;
return businnessEquals(obj);
}
public abstract boolean businnessEquals(Object obj);
@Override
public boolean businnessEquals(Object obj) {
Author otherAuthor = (Author) obj;
return new EqualsBuilder().append(this.user, otherAuthor.getUser())
.isEquals();
}
sweetdev-ria sweetdev-ria-core 3.3.12
SweetDevRiaServlet com.ideo.sweetdevria.servlet.SweetDevRiaServlet SweetDevRiaServlet /RiaController
com.ideo.sweetdevria.webapp.RiaLoaderListener
BrowserCacheFilter com.ideo.jso.filter.BrowserCacheFilter BrowserCacheFilter *.js BrowserCacheFilter *.css BrowserCacheFilter *.jpg BrowserCacheFilter *.gif BrowserCacheFilter *.png
< %@ taglib prefix="ria" uri="http://sweetdev-ria.ideotechnologies.com" % >
< %@ page contentType="text/html;charset=iso-8859-1" language="java" % >
< !DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" >
< html>
< head>
< title>Window test< /title>
< meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
< meta http-equiv="Cache-Control" content="no-cache" />
< meta http-equiv="Pragma" content="no-cache" />
< ria:resourcesImport skinName="BleuF"/>
< /head>
< body>
< ria:newwindow id="myWindowId" title="My Window" openAtStartup="false" loadAtStartup="false">
My text in the window !
< /ria:newwindow>
< input type="button" onclick="SweetDevRia.$('myWindowId').open()" value="Open window"/>
< /body>
< /html>
// Create or retrieve a JexlEngine
JexlEngine jexl = new JexlEngine();
// Create an expression object
String jexlExp = "foo.innerFoo.bar()";
Expression e = jexl.createExpression( jexlExp );
// Create a context and add data
JexlContext jc = new MapContext();
jc.set("foo", new Foo() );
// Now evaluate the expression, getting the result
Object o = e.evaluate(jc);
CREATE TABLE user (
nombre enum('juan','pedro') NOT NULL,
pais enum('argentina','paraguay', 'mexico')
);
SELECT * FROM nom_tabla WHERE set_col LIKE '%value%';
SELECT * FROM nom_tabla WHERE FIND_IN_SET('value',set_col)>0;
SELECT * FROM nom_tabla WHERE set_col = 'val1, val2';