[lambico] 4 new revisions pushed by lucio.be...@gmail.com on 2013-03-13 16:17 GMT

2 views
Skip to first unread message

lam...@googlecode.com

unread,
Mar 13, 2013, 12:17:28 PM3/13/13
to lambico...@googlegroups.com
4 new revisions:

Revision: bc9324b04a43
Branch: default
Author: lucio.benfante <lucio.b...@gmail.com>
Date: Fri Jan 11 00:45:31 2013
Log: Fixed coutByCriteria methods. Now it doesn't alterate the passed
crite...
http://code.google.com/p/lambico/source/detail?r=bc9324b04a43

Revision: d90d43e94da5
Branch: default
Author: lucio.benfante <lucio.b...@gmail.com>
Date: Fri Jan 11 00:54:44 2013
Log: Added configuration for deploying sources and javadoc.
http://code.google.com/p/lambico/source/detail?r=d90d43e94da5

Revision: 2af5dd63e27a
Branch: default
Author: lucio.benfante <lucio.b...@gmail.com>
Date: Wed Mar 13 09:10:11 2013
Log: Added tag lambico-1.0.0-snapshot for changeset d90d43e94da5
http://code.google.com/p/lambico/source/detail?r=2af5dd63e27a

Revision: d85cb3766ddb
Branch: v1.0
Author: lucio.benfante <lucio.b...@gmail.com>
Date: Wed Mar 13 09:14:15 2013
Log: Created branch v1.0
http://code.google.com/p/lambico/source/detail?r=d85cb3766ddb

==============================================================================
Revision: bc9324b04a43
Branch: default
Author: lucio.benfante <lucio.b...@gmail.com>
Date: Fri Jan 11 00:45:31 2013
Log: Fixed coutByCriteria methods. Now it doesn't alterate the passed
criteria, so it can be reused.
http://code.google.com/p/lambico/source/detail?r=bc9324b04a43

Modified:
/.hgignore
/lambico-spring-hibernate/pom.xml

/lambico-spring-hibernate/src/main/java/org/lambico/spring/dao/hibernate/HibernateGenericDaoImpl.java

/lambico-spring-hibernate/src/test/java/org/lambico/spring/dao/hibernate/HibernateGenericDaoTest.java
/lambico-spring/pom.xml
/pom.xml

=======================================
--- /.hgignore Mon Feb 8 12:48:29 2010
+++ /.hgignore Fri Jan 11 00:45:31 2013
@@ -1,8 +1,13 @@
syntag: regexp
^nbactions.xml
+^nb-configuration.xml
^profiles.xml
^target
^lambico-core/target
+^lambico-core/nb-configuration.xml
^lambico-spring/target
+^lambico-spring/nb-configuration.xml
^lambico-spring-hibernate/target
+^lambico-spring-hibernate/nb-configuration.xml
^lambico-test/target
+^lambico-test/nb-configuration.xml
=======================================
--- /lambico-spring-hibernate/pom.xml Fri Apr 29 20:50:22 2011
+++ /lambico-spring-hibernate/pom.xml Fri Jan 11 00:45:31 2013
@@ -51,6 +51,11 @@
<groupId>org.slf4j</groupId>
<scope>runtime</scope>
</dependency>
+ <dependency>
+ <groupId>commons-lang</groupId>
+ <artifactId>commons-lang</artifactId>
+ <type>jar</type>
+ </dependency>
</dependencies>
<build>
<plugins>
=======================================
---
/lambico-spring-hibernate/src/main/java/org/lambico/spring/dao/hibernate/HibernateGenericDaoImpl.java
Fri Dec 2 02:55:12 2011
+++
/lambico-spring-hibernate/src/main/java/org/lambico/spring/dao/hibernate/HibernateGenericDaoImpl.java
Fri Jan 11 00:45:31 2013
@@ -23,6 +23,7 @@
import org.lambico.dao.spring.hibernate.HibernateGenericDao;
import java.io.Serializable;
import java.util.List;
+import org.apache.commons.lang.SerializationUtils;
import org.hibernate.Criteria;
import org.hibernate.criterion.Criterion;
import org.hibernate.criterion.DetachedCriteria;
@@ -253,9 +254,10 @@
* @return {@inheritDoc}
*/
public final long countByCriteria(final DetachedCriteria criteria) {
- criteria.setProjection(Projections.rowCount());
+ DetachedCriteria countCriteria = (DetachedCriteria)
SerializationUtils.clone(criteria);
+ countCriteria.setProjection(Projections.rowCount());
return
DataAccessUtils.intResult(getCustomizedHibernateTemplate().findByCriteria(
- criteria));
+ countCriteria));
}

/**
=======================================
---
/lambico-spring-hibernate/src/test/java/org/lambico/spring/dao/hibernate/HibernateGenericDaoTest.java
Mon Mar 21 02:05:37 2011
+++
/lambico-spring-hibernate/src/test/java/org/lambico/spring/dao/hibernate/HibernateGenericDaoTest.java
Fri Jan 11 00:45:31 2013
@@ -122,4 +122,12 @@
assertEquals(5, counted);
}

+ public void testCountByCriteriaReusingCriteria() {
+ final DetachedCriteria crit =
DetachedCriteria.forClass(EntityTC.class);
+ long counted = ((HibernateGenericDao)
this.entityTCDao).countByCriteria(crit);
+ assertEquals(5, counted);
+ List<EntityTC> items = ((HibernateGenericDao)
this.entityTCDao).searchByCriteria(crit);
+ assertSize(5, items);
+ }
+
}
=======================================
--- /lambico-spring/pom.xml Tue Dec 13 13:37:52 2011
+++ /lambico-spring/pom.xml Fri Jan 11 00:45:31 2013
@@ -82,6 +82,7 @@
<excludes>
<exclude>**/META-INF/spring.handlers</exclude>
<exclude>**/META-INF/spring.schemas</exclude>
+ <exclude>nb-configuration.xml</exclude>
</excludes>
</configuration>
</plugin>
=======================================
--- /pom.xml Tue Dec 13 13:37:52 2011
+++ /pom.xml Fri Jan 11 00:45:31 2013
@@ -19,7 +19,7 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<main.basedir>${basedir}</main.basedir>
<year>2009</year>
- <lambico.spring.version>3.0.5.RELEASE</lambico.spring.version>
+ <lambico.spring.version>3.0.7.RELEASE</lambico.spring.version>
<lambico.hibernate.version>3.6.2.Final</lambico.hibernate.version>

<lambico.hibernate-annotations.version>3.5.1-Final</lambico.hibernate-annotations.version>
<lambico.log4j.version>1.2.14</lambico.log4j.version>
@@ -133,7 +133,7 @@
<dependency>
<groupId>commons-lang</groupId>
<artifactId>commons-lang</artifactId>
- <version>2.4</version>
+ <version>2.6</version>
</dependency>
<dependency>
<groupId>commons-io</groupId>

==============================================================================
Revision: d90d43e94da5
Branch: default
Author: lucio.benfante <lucio.b...@gmail.com>
Date: Fri Jan 11 00:54:44 2013
Log: Added configuration for deploying sources and javadoc.
http://code.google.com/p/lambico/source/detail?r=d90d43e94da5

Modified:
/pom.xml

=======================================
--- /pom.xml Fri Jan 11 00:45:31 2013
+++ /pom.xml Fri Jan 11 00:54:44 2013
@@ -246,6 +246,46 @@
<goals>
<goal>check</goal>
</goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <artifactId>maven-source-plugin</artifactId>
+ <version>2.1.2</version>
+ <executions>
+ <execution>
+ <id>attach-sources</id>
+ <phase>deploy</phase>
+ <goals>
+ <goal>jar-no-fork</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <artifactId>maven-javadoc-plugin</artifactId>
+ <version>2.8.1</version>
+ <executions>
+ <execution>
+ <id>attach-javadocs</id>
+ <phase>deploy</phase>
+ <goals>
+ <goal>jar</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <!-- explicitly define maven-deploy-plugin after other to
force exec order -->
+ <artifactId>maven-deploy-plugin</artifactId>
+ <version>2.7</version>
+ <executions>
+ <execution>
+ <id>deploy</id>
+ <phase>deploy</phase>
+ <goals>
+ <goal>deploy</goal>
+ </goals>
</execution>
</executions>
</plugin>

==============================================================================
Revision: 2af5dd63e27a
Branch: default
Author: lucio.benfante <lucio.b...@gmail.com>
Date: Wed Mar 13 09:10:11 2013
Log: Added tag lambico-1.0.0-snapshot for changeset d90d43e94da5
http://code.google.com/p/lambico/source/detail?r=2af5dd63e27a

Modified:
/.hgtags

=======================================
--- /.hgtags Tue Mar 30 06:30:33 2010
+++ /.hgtags Wed Mar 13 09:10:11 2013
@@ -47,3 +47,4 @@
0000000000000000000000000000000000000000 lambico-1.0-beta-5
f8ec7dfd5fa31d9c4994d8c8e6b127e8b748b928 lambico-1.0-beta-05
94c553896cc8d445d5df283affebd6fb7b5cfb53 lambico-1.0-beta-06
+d90d43e94da57219e7024bdd6dc3012c2bb6c16a lambico-1.0.0-snapshot

==============================================================================
Revision: d85cb3766ddb
Branch: v1.0
Author: lucio.benfante <lucio.b...@gmail.com>
Date: Wed Mar 13 09:14:15 2013
Log: Created branch v1.0
http://code.google.com/p/lambico/source/detail?r=d85cb3766ddb


Reply all
Reply to author
Forward
0 new messages