<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-8012237203172260768</id><updated>2011-04-21T20:15:42.368-07:00</updated><category term='maven'/><category term='hibernate'/><category term='quickbooks'/><category term='java'/><category term='spring'/><category term='digester'/><title type='text'>Coding Tricks</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://tricksdev.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8012237203172260768/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://tricksdev.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Coding Tricks</name><uri>http://www.blogger.com/profile/11225824210506369654</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>12</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-8012237203172260768.post-6424867563540031064</id><published>2009-03-23T08:01:00.000-07:00</published><updated>2009-03-23T08:06:13.739-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='hibernate'/><title type='text'>Hibernate optimistic locking</title><content type='html'>@Column(name = "VERSION", nullable = false, columnDefinition = "bigint default 0")&lt;br /&gt;    @Version()&lt;br /&gt;    private Long version;&lt;br /&gt;&lt;pre&gt;try {&lt;br /&gt;    spaceShipManager.saveSpaceShip(ship);&lt;br /&gt;} catch (HibernateOptimisticLockingFailureException e) {&lt;br /&gt;    return mapping.findForward("error");&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8012237203172260768-6424867563540031064?l=tricksdev.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tricksdev.blogspot.com/feeds/6424867563540031064/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tricksdev.blogspot.com/2009/03/hibernate-optimistic-locking.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8012237203172260768/posts/default/6424867563540031064'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8012237203172260768/posts/default/6424867563540031064'/><link rel='alternate' type='text/html' href='http://tricksdev.blogspot.com/2009/03/hibernate-optimistic-locking.html' title='Hibernate optimistic locking'/><author><name>Coding Tricks</name><uri>http://www.blogger.com/profile/11225824210506369654</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8012237203172260768.post-4215080018532973395</id><published>2009-03-23T07:59:00.000-07:00</published><updated>2009-03-23T08:01:00.821-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='hibernate'/><title type='text'>Hibernate annotation default column value</title><content type='html'>@Column(name = "VERSION", nullable = false, columnDefinition = "bigint default 0")&lt;br /&gt;private Long version;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8012237203172260768-4215080018532973395?l=tricksdev.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tricksdev.blogspot.com/feeds/4215080018532973395/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tricksdev.blogspot.com/2009/03/hibernate-annotation-default-column.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8012237203172260768/posts/default/4215080018532973395'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8012237203172260768/posts/default/4215080018532973395'/><link rel='alternate' type='text/html' href='http://tricksdev.blogspot.com/2009/03/hibernate-annotation-default-column.html' title='Hibernate annotation default column value'/><author><name>Coding Tricks</name><uri>http://www.blogger.com/profile/11225824210506369654</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8012237203172260768.post-3062356807588274953</id><published>2009-03-13T09:09:00.000-07:00</published><updated>2009-03-13T09:12:30.243-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='quickbooks'/><title type='text'>Configure Interactive mode for QuickBooks Web Connector</title><content type='html'>The name of my computer is "b04".&lt;br /&gt;&lt;br /&gt;1) generate SSL certificate for Tomcat (see tomcat-docs/ssl-howto.html from your Tomcat for details).&lt;br /&gt;During generating certificate the answer on question "What is your first and last name" must be the name of your host (b04 in my case).&lt;br /&gt;&lt;br /&gt;2) specify CertURL in your .qwc file:&lt;br /&gt;&lt;QBWCXML&gt;&lt;br /&gt;...&lt;br /&gt;&lt;AppURL&gt;https://b04:8443/services/MySOAPService&lt;/AppURL&gt;&lt;br /&gt;...&lt;br /&gt;&lt;CertURL&gt;https://b04:8443/somepage.htm&lt;/CertURL&gt;&lt;br /&gt;...&lt;br /&gt;&lt;/QBWCXML&gt;&lt;br /&gt;&lt;br /&gt;3) return "" from sendRequestXML()&lt;br /&gt;return "Interactive mode" from getLastError()&lt;br /&gt;return "https://b04:8443/somepage.htm" from getInteractiveURL()&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8012237203172260768-3062356807588274953?l=tricksdev.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tricksdev.blogspot.com/feeds/3062356807588274953/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tricksdev.blogspot.com/2009/03/configure-interactive-mode-for.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8012237203172260768/posts/default/3062356807588274953'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8012237203172260768/posts/default/3062356807588274953'/><link rel='alternate' type='text/html' href='http://tricksdev.blogspot.com/2009/03/configure-interactive-mode-for.html' title='Configure Interactive mode for QuickBooks Web Connector'/><author><name>Coding Tricks</name><uri>http://www.blogger.com/profile/11225824210506369654</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8012237203172260768.post-2260303183289687223</id><published>2009-03-13T07:09:00.000-07:00</published><updated>2009-03-13T09:12:55.297-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><title type='text'>Terminate Java process</title><content type='html'>&lt;pre&gt;taskkill /IM java.exe /F&lt;br /&gt;pause&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8012237203172260768-2260303183289687223?l=tricksdev.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tricksdev.blogspot.com/feeds/2260303183289687223/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tricksdev.blogspot.com/2009/03/terminate-java-process.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8012237203172260768/posts/default/2260303183289687223'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8012237203172260768/posts/default/2260303183289687223'/><link rel='alternate' type='text/html' href='http://tricksdev.blogspot.com/2009/03/terminate-java-process.html' title='Terminate Java process'/><author><name>Coding Tricks</name><uri>http://www.blogger.com/profile/11225824210506369654</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8012237203172260768.post-1381788215186334640</id><published>2009-03-12T14:52:00.000-07:00</published><updated>2009-03-13T09:13:24.000-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='hibernate'/><category scheme='http://www.blogger.com/atom/ns#' term='maven'/><title type='text'>Hibernate bytecode instrumentation (enhance persistent classes) with help of Maven</title><content type='html'>Is used to enable Hibernate lazy property fetching. "**/model/*" are your persistent classes.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;pom.xml:&lt;/span&gt;&lt;br /&gt;&lt;pre&gt;&amp;lt;plugin&amp;gt;&lt;br /&gt;    &amp;lt;artifactId&amp;gt;maven-antrun-plugin&amp;lt;/artifactId&amp;gt;&lt;br /&gt;    &amp;lt;executions&amp;gt;&lt;br /&gt;        &amp;lt;execution&amp;gt;&lt;br /&gt;            &amp;lt;id&amp;gt;Instrument domain classes&amp;lt;/id&amp;gt;&lt;br /&gt;            &amp;lt;configuration&amp;gt;&lt;br /&gt;                &amp;lt;tasks&amp;gt;&lt;br /&gt;                    &amp;lt;taskdef name="instrument"&lt;br /&gt;                             classname="org.hibernate.tool.instrument.cglib.InstrumentTask"&amp;gt;&lt;br /&gt;                        &amp;lt;classpath&amp;gt;&lt;br /&gt;                            &amp;lt;path refid="maven.dependency.classpath"/&amp;gt;&lt;br /&gt;                            &amp;lt;path refid="maven.plugin.classpath"/&amp;gt;&lt;br /&gt;                        &amp;lt;/classpath&amp;gt;&lt;br /&gt;                    &amp;lt;/taskdef&amp;gt;&lt;br /&gt;                    &amp;lt;instrument verbose="true"&amp;gt;&lt;br /&gt;                        &amp;lt;fileset dir="${project.build.outputDirectory}"&amp;gt;&lt;br /&gt;                            &amp;lt;include name="**/model/*.class"/&amp;gt;&lt;br /&gt;                        &amp;lt;/fileset&amp;gt;&lt;br /&gt;                    &amp;lt;/instrument&amp;gt;&lt;br /&gt;                &amp;lt;/tasks&amp;gt;&lt;br /&gt;            &amp;lt;/configuration&amp;gt;&lt;br /&gt;            &amp;lt;phase&amp;gt;process-classes&amp;lt;/phase&amp;gt;&lt;br /&gt;            &amp;lt;goals&amp;gt;&lt;br /&gt;                &amp;lt;goal&amp;gt;run&amp;lt;/goal&amp;gt;&lt;br /&gt;            &amp;lt;/goals&amp;gt;&lt;br /&gt;        &amp;lt;/execution&amp;gt;&lt;br /&gt;    &amp;lt;/executions&amp;gt;&lt;br /&gt;    &amp;lt;dependencies&amp;gt;&lt;br /&gt;        &amp;lt;dependency&amp;gt;&lt;br /&gt;            &amp;lt;groupId&amp;gt;org.hibernate&amp;lt;/groupId&amp;gt;&lt;br /&gt;            &amp;lt;artifactId&amp;gt;hibernate&amp;lt;/artifactId&amp;gt;&lt;br /&gt;            &amp;lt;version&amp;gt;3.2.6.ga&amp;lt;/version&amp;gt;&lt;br /&gt;        &amp;lt;/dependency&amp;gt;&lt;br /&gt;    &amp;lt;/dependencies&amp;gt;&lt;br /&gt;&amp;lt;/plugin&amp;gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8012237203172260768-1381788215186334640?l=tricksdev.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tricksdev.blogspot.com/feeds/1381788215186334640/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tricksdev.blogspot.com/2009/03/hibernate-bytecode-instrumentation.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8012237203172260768/posts/default/1381788215186334640'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8012237203172260768/posts/default/1381788215186334640'/><link rel='alternate' type='text/html' href='http://tricksdev.blogspot.com/2009/03/hibernate-bytecode-instrumentation.html' title='Hibernate bytecode instrumentation (enhance persistent classes) with help of Maven'/><author><name>Coding Tricks</name><uri>http://www.blogger.com/profile/11225824210506369654</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8012237203172260768.post-2169895858204338131</id><published>2009-03-12T14:40:00.000-07:00</published><updated>2009-03-12T14:51:22.040-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='hibernate'/><category scheme='http://www.blogger.com/atom/ns#' term='maven'/><title type='text'>Hibernate ddl (database schema) generation with help of Maven</title><content type='html'>&lt;span style="font-weight:bold;"&gt;pom.xml:&lt;/span&gt;&lt;br /&gt;&lt;pre&gt;&amp;lt;plugin&amp;gt;&lt;br /&gt;    &amp;lt;!-- hibernate ddl generation --&amp;gt;&lt;br /&gt;    &amp;lt;groupId&amp;gt;org.codehaus.mojo&amp;lt;/groupId&amp;gt;&lt;br /&gt;    &amp;lt;artifactId&amp;gt;hibernate3-maven-plugin&amp;lt;/artifactId&amp;gt;&lt;br /&gt;    &amp;lt;version&amp;gt;2.0-alpha-2&amp;lt;/version&amp;gt;&lt;br /&gt;    &amp;lt;configuration&amp;gt;&lt;br /&gt;        &amp;lt;components&amp;gt;&lt;br /&gt;            &amp;lt;component&amp;gt;&lt;br /&gt;                &amp;lt;name&amp;gt;hbm2ddl&amp;lt;/name&amp;gt;&lt;br /&gt;                &amp;lt;outputDirectory&amp;gt;.&amp;lt;/outputDirectory&amp;gt;&lt;br /&gt;            &amp;lt;/component&amp;gt;&lt;br /&gt;        &amp;lt;/components&amp;gt;&lt;br /&gt;        &amp;lt;componentProperties&amp;gt;&lt;br /&gt;            &amp;lt;configurationfile&amp;gt;src/main/db/hibernate.cfg.xml&amp;lt;/configurationfile&amp;gt;&lt;br /&gt;            &amp;lt;drop&amp;gt;false&amp;lt;/drop&amp;gt;&lt;br /&gt;            &amp;lt;create&amp;gt;true&amp;lt;/create&amp;gt;&lt;br /&gt;            &amp;lt;export&amp;gt;false&amp;lt;/export&amp;gt;&lt;br /&gt;            &amp;lt;jdk5&amp;gt;true&amp;lt;/jdk5&amp;gt;&lt;br /&gt;            &amp;lt;format&amp;gt;true&amp;lt;/format&amp;gt;&lt;br /&gt;        &amp;lt;/componentProperties&amp;gt;&lt;br /&gt;    &amp;lt;/configuration&amp;gt;&lt;br /&gt;    &amp;lt;executions&amp;gt;&lt;br /&gt;        &amp;lt;execution&amp;gt;&lt;br /&gt;            &amp;lt;id&amp;gt;export-mysql&amp;lt;/id&amp;gt;&lt;br /&gt;            &amp;lt;phase&amp;gt;process-classes&amp;lt;/phase&amp;gt;&lt;br /&gt;            &amp;lt;goals&amp;gt;&lt;br /&gt;                &amp;lt;goal&amp;gt;hbm2ddl&amp;lt;/goal&amp;gt;&lt;br /&gt;            &amp;lt;/goals&amp;gt;&lt;br /&gt;            &amp;lt;configuration&amp;gt;&lt;br /&gt;                &amp;lt;componentProperties&amp;gt;&lt;br /&gt;                    &amp;lt;propertyfile&amp;gt;src/main/db/hibernate-mysql.properties&amp;lt;/propertyfile&amp;gt;&lt;br /&gt;                    &amp;lt;outputfilename&amp;gt;target/mysql-ddl.sql&amp;lt;/outputfilename&amp;gt;&lt;br /&gt;                &amp;lt;/componentProperties&amp;gt;&lt;br /&gt;            &amp;lt;/configuration&amp;gt;&lt;br /&gt;        &amp;lt;/execution&amp;gt;&lt;br /&gt;    &amp;lt;/executions&amp;gt;&lt;br /&gt;&amp;lt;/plugin&amp;gt;&lt;/pre&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;hibernate.cfg.xml:&lt;/span&gt;&lt;br /&gt;&lt;pre&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&lt;br /&gt;&amp;lt;!DOCTYPE hibernate-configuration PUBLIC&lt;br /&gt;  "-//Hibernate/Hibernate Configuration DTD 3.0//EN"&lt;br /&gt;  "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"&amp;gt;&lt;br /&gt;&amp;lt;hibernate-configuration&amp;gt;&lt;br /&gt;    &amp;lt;session-factory&amp;gt;&lt;br /&gt;        &amp;lt;!--Annotated classes--&amp;gt;&lt;br /&gt;        &amp;lt;mapping class="com.etymgiko.lyricscollection.model.Artist" /&amp;gt;&lt;br /&gt;        &amp;lt;mapping class="com.etymgiko.lyricscollection.model.Song" /&amp;gt;&lt;br /&gt;    &amp;lt;/session-factory&amp;gt;&lt;br /&gt;&amp;lt;/hibernate-configuration&amp;gt;&lt;/pre&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;hibernate-mysql.properties:&lt;/span&gt;&lt;br /&gt;&lt;pre&gt;# This properties file defines the dialect for the MYSQL database&lt;br /&gt;hibernate.dialect=org.hibernate.dialect.MySQL5InnoDBDialect&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8012237203172260768-2169895858204338131?l=tricksdev.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tricksdev.blogspot.com/feeds/2169895858204338131/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tricksdev.blogspot.com/2009/03/hibernate-ddl-generation-with-help-of.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8012237203172260768/posts/default/2169895858204338131'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8012237203172260768/posts/default/2169895858204338131'/><link rel='alternate' type='text/html' href='http://tricksdev.blogspot.com/2009/03/hibernate-ddl-generation-with-help-of.html' title='Hibernate ddl (database schema) generation with help of Maven'/><author><name>Coding Tricks</name><uri>http://www.blogger.com/profile/11225824210506369654</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8012237203172260768.post-376726974439826624</id><published>2009-03-10T06:08:00.000-07:00</published><updated>2009-03-10T06:10:40.031-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><title type='text'>Java System properties</title><content type='html'>&lt;pre&gt;import java.util.Arrays;&lt;br /&gt;&lt;br /&gt;public class SystemProperties {&lt;br /&gt;&lt;br /&gt;    public static void main(String [] args) {&lt;br /&gt;        String [] keys = System.getProperties().keySet()&lt;br /&gt;            .toArray(new String [] {});&lt;br /&gt;        Arrays.sort(keys);&lt;br /&gt;        for (String key: keys) {&lt;br /&gt;            String value = System.getProperty(key);&lt;br /&gt;            System.out.println(key + ": " + value);&lt;br /&gt;        }&lt;br /&gt;    }&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8012237203172260768-376726974439826624?l=tricksdev.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tricksdev.blogspot.com/feeds/376726974439826624/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tricksdev.blogspot.com/2009/03/java-system-properties.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8012237203172260768/posts/default/376726974439826624'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8012237203172260768/posts/default/376726974439826624'/><link rel='alternate' type='text/html' href='http://tricksdev.blogspot.com/2009/03/java-system-properties.html' title='Java System properties'/><author><name>Coding Tricks</name><uri>http://www.blogger.com/profile/11225824210506369654</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8012237203172260768.post-1872351527464567295</id><published>2009-03-02T07:20:00.000-08:00</published><updated>2009-03-02T07:27:50.268-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='maven'/><title type='text'>Maven compile sources version 1.5</title><content type='html'>Add following to pom.xml:&lt;br /&gt;&lt;pre&gt;&amp;lt;build&amp;gt;&lt;br /&gt;  &amp;lt;plugins&amp;gt;&lt;br /&gt;      &amp;lt;plugin&amp;gt;&lt;br /&gt;          &amp;lt;groupId&amp;gt;org.apache.maven.plugins&amp;lt;/groupId&amp;gt;&lt;br /&gt;          &amp;lt;artifactId&amp;gt;maven-compiler-plugin&amp;lt;/artifactId&amp;gt;&lt;br /&gt;          &amp;lt;configuration&amp;gt;&lt;br /&gt;              &amp;lt;source&amp;gt;1.5&amp;lt;/source&amp;gt;&lt;br /&gt;              &amp;lt;target&amp;gt;1.5&amp;lt;/target&amp;gt;&lt;br /&gt;          &amp;lt;/configuration&amp;gt;&lt;br /&gt;      &amp;lt;/plugin&amp;gt;&lt;br /&gt;  &amp;lt;/plugins&amp;gt;&lt;br /&gt;&amp;lt;/build&amp;gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8012237203172260768-1872351527464567295?l=tricksdev.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tricksdev.blogspot.com/feeds/1872351527464567295/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tricksdev.blogspot.com/2009/03/maven-compile-sources-version-15.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8012237203172260768/posts/default/1872351527464567295'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8012237203172260768/posts/default/1872351527464567295'/><link rel='alternate' type='text/html' href='http://tricksdev.blogspot.com/2009/03/maven-compile-sources-version-15.html' title='Maven compile sources version 1.5'/><author><name>Coding Tricks</name><uri>http://www.blogger.com/profile/11225824210506369654</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8012237203172260768.post-4702560693401159795</id><published>2009-03-01T06:52:00.000-08:00</published><updated>2009-03-13T09:14:08.320-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='maven'/><title type='text'>Maven artifact sources</title><content type='html'>Download sources of artifacts (from pom.xml) to local repository.&lt;br /&gt;&lt;br /&gt;set JAVA_HOME=C:\jdk1.6.0&lt;br /&gt;set MAVEN_HOME=D:\java\apache-maven-2.0.9&lt;br /&gt;%MAVEN_HOME%\bin\mvn dependency:sources&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8012237203172260768-4702560693401159795?l=tricksdev.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tricksdev.blogspot.com/feeds/4702560693401159795/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tricksdev.blogspot.com/2009/03/maven-artifact-sources.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8012237203172260768/posts/default/4702560693401159795'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8012237203172260768/posts/default/4702560693401159795'/><link rel='alternate' type='text/html' href='http://tricksdev.blogspot.com/2009/03/maven-artifact-sources.html' title='Maven artifact sources'/><author><name>Coding Tricks</name><uri>http://www.blogger.com/profile/11225824210506369654</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8012237203172260768.post-7395237479540184662</id><published>2009-02-26T04:57:00.001-08:00</published><updated>2009-02-26T05:34:31.448-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='hibernate'/><category scheme='http://www.blogger.com/atom/ns#' term='spring'/><title type='text'>Hibernate Spring where clause</title><content type='html'>public List getSongs(Long artistId) {&lt;br /&gt;      return getHibernateTemplate().find("from Song as song where song.artist.id = ?", new Object [] {artistId});&lt;br /&gt;  }&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8012237203172260768-7395237479540184662?l=tricksdev.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tricksdev.blogspot.com/feeds/7395237479540184662/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tricksdev.blogspot.com/2009/02/hibernate.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8012237203172260768/posts/default/7395237479540184662'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8012237203172260768/posts/default/7395237479540184662'/><link rel='alternate' type='text/html' href='http://tricksdev.blogspot.com/2009/02/hibernate.html' title='Hibernate Spring where clause'/><author><name>Coding Tricks</name><uri>http://www.blogger.com/profile/11225824210506369654</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8012237203172260768.post-8027504951694136671</id><published>2009-02-25T07:52:00.000-08:00</published><updated>2009-02-25T08:35:11.478-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='digester'/><title type='text'>Use regexp in Digester</title><content type='html'>How to configure Digester to use reg exp pattern like *&lt;br /&gt;&lt;pattern value="*AddRs"&gt;&amp;lt;pattern  value="*AddRs"&amp;gt;&lt;br /&gt;...&lt;br /&gt;&lt;/pattern&gt;&amp;lt;pattern&amp;gt;&lt;br /&gt;&lt;br /&gt;URL rulesXml = getClass().getClassLoader().getResource(path);&lt;br /&gt;RuleSet ruleSet = new FromXmlRuleSet(rulesXml);&lt;br /&gt;Digester digester = new Digester();&lt;br /&gt;digester.setRules(new RegexRules(new SimpleRegexMatcher()));&lt;br /&gt;digester.addRuleSet(ruleSet);&lt;br /&gt;return digester;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8012237203172260768-8027504951694136671?l=tricksdev.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tricksdev.blogspot.com/feeds/8027504951694136671/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tricksdev.blogspot.com/2009/02/use-regexp-in-digester.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8012237203172260768/posts/default/8027504951694136671'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8012237203172260768/posts/default/8027504951694136671'/><link rel='alternate' type='text/html' href='http://tricksdev.blogspot.com/2009/02/use-regexp-in-digester.html' title='Use regexp in Digester'/><author><name>Coding Tricks</name><uri>http://www.blogger.com/profile/11225824210506369654</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8012237203172260768.post-6281530649676717288</id><published>2009-02-25T07:13:00.000-08:00</published><updated>2009-02-25T07:17:03.444-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='maven'/><title type='text'>Maven dependency tree</title><content type='html'>set JAVA_HOME=C:\jdk1.6.0&lt;br /&gt;set MAVEN_HOME=D:\java\apache-maven-2.0.9&lt;br /&gt;%MAVEN_HOME%\bin\mvn dependency:tree &gt; dep.txt&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8012237203172260768-6281530649676717288?l=tricksdev.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tricksdev.blogspot.com/feeds/6281530649676717288/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tricksdev.blogspot.com/2009/02/maven-dependency-tree.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8012237203172260768/posts/default/6281530649676717288'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8012237203172260768/posts/default/6281530649676717288'/><link rel='alternate' type='text/html' href='http://tricksdev.blogspot.com/2009/02/maven-dependency-tree.html' title='Maven dependency tree'/><author><name>Coding Tricks</name><uri>http://www.blogger.com/profile/11225824210506369654</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
