<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>TomRed.net New Articles</title>
    <link>http://www.tomred.net/</link>
    <description> Thu, 23 Feb 2012 01:55:50 +0000 en-gb</description>
    <item>
<title>Java Hibernate Repeated column in mapping for entity</title>
<link>http://www.tomred.net/java-hibernate-repeated-column-in-mapping-for-entity.html</link>
<guid>java-hibernate-repeated-column-in-mapping-for-entity.html</guid>
<pubDate>Wed, 04 Jan 2012 03:52:05 +0000</pubDate>
<description><![CDATA[ If you are experiencing this there is one cause and two likely reasons.  The first reason is that you have accidently repeated the mapping of one of your fields by annotating two fields with the same column or duplicating the entry in your hibernate mapping file hbm.xml.  The seacond reason is that you intentionally have repeated your mapping.  This is sometimes done to have read-only fields.  In the first case you are looking for something like the snippet below this is outlining that there are two @Column annotations with the same name.  This is usually easy to find and quick to fix. ]]></description>
</item>
<item>
<title>JavaScript String Replace Function</title>
<link>http://www.tomred.net/javascript-string-replace-function.html</link>
<guid>javascript-string-replace-function.html</guid>
<pubDate>Fri, 30 Dec 2011 00:52:51 +0000</pubDate>
<description><![CDATA[  ]]></description>
</item>
<item>
<title>JavaScript String Concatenation</title>
<link>http://www.tomred.net/javascript-string-concatenation.html</link>
<guid>javascript-string-concatenation.html</guid>
<pubDate>Thu, 29 Dec 2011 21:07:50 +0000</pubDate>
<description><![CDATA[ When you need to append one string on the end of another this is known as concatenation. In JavaScript this is achieved using + operator, or string operator. This concatenation can be achieved in a number of ways each has its own advantages.  The simplest means of string concatenation in JavaScript is  ]]></description>
</item>
<item>
<title>Java Eclipse Remote Debugging</title>
<link>http://www.tomred.net/java-eclipse-remote-debugging.html</link>
<guid>java-eclipse-remote-debugging.html</guid>
<pubDate>Wed, 28 Dec 2011 22:22:43 +0000</pubDate>
<description><![CDATA[ First of all debugging is the process of stepping through the code to help identify bugs or their causes.  This is usually done locally as part of the development process but on occassion bugs occur in particular environments only or in situations that cannot be replicated in the development environment.  In these case remote debugging is used.  Remote debugging operates in a manner similar to local debug with the exception of the application running in a remote location.  It is advisable to always have the same version of the code as is running in the remote location in your eclipse workspace or else you will see that the line numbers don't match up or your debug points don't exist. ]]></description>
</item>
<item>
<title>Java Hibernate HQL Case Insensitive Query</title>
<link>http://www.tomred.net/java-hibernate-hql-case-insensitive-query-like.html</link>
<guid>java-hibernate-hql-case-insensitive-query-like.html</guid>
<pubDate>Thu, 22 Dec 2011 04:03:32 +0000</pubDate>
<description><![CDATA[ Recently we have been converting a legacy persistence framework to hibernate.  One of the scenarios we have stumbled upon is the case insensitive like or ilike.  While this is available as part of criteria queries there is no equivalent HQL function.  We looked at this from a number perspectives in the end settled on the following. ]]></description>
</item>
<item>
<title>JavaScript Reorder option elements of an HTML select</title>
<link>http://www.tomred.net/javascript-reorder-option-elements-of-an-html-select.html</link>
<guid>javascript-reorder-option-elements-of-an-html-select.html</guid>
<pubDate>Tue, 11 Oct 2011 06:41:51 +0000</pubDate>
<description><![CDATA[  ]]></description>
</item>
<item>
<title>JavaScript Random Number Generator</title>
<link>http://www.tomred.net/javascript-random-number-generator.html</link>
<guid>javascript-random-number-generator.html</guid>
<pubDate>Tue, 21 Jun 2011 04:45:14 +0000</pubDate>
<description><![CDATA[ There is always a need to generate a random number when developing.&nbsp; Maybe you want to select a quote at random or your creating a chance element in a game, in either or any case this can be easily achieve.&nbsp; In the example below I use Math.random(). &nbsp;The results may be unpredictable, but the technique to getting them certainly is not. To generate a random number in JavaScript, simply use the following code: ]]></description>
</item>
<item>
<title>JavaScript Moving option elements between HTML select lists</title>
<link>http://www.tomred.net/javascript-moving-option-elements-between-html-select-lists.html</link>
<guid>javascript-moving-option-elements-between-html-select-lists.html</guid>
<pubDate>Tue, 14 Jun 2011 20:42:27 +0000</pubDate>
<description><![CDATA[  ]]></description>
</item>
<item>
<title>Java Hibernate Exception unknown ordinal value for enum class</title>
<link>http://www.tomred.net/java-hibernate-exception-unknown-ordinal-value-for-enum-class.html</link>
<guid>java-hibernate-exception-unknown-ordinal-value-for-enum-class.html</guid>
<pubDate>Tue, 07 Jun 2011 03:46:11 +0000</pubDate>
<description><![CDATA[  ]]></description>
</item>
<item>
<title>JavaScript Is a String Var Empty or Null</title>
<link>http://www.tomred.net/javascript-is-a-string-var-empty-or-null.html</link>
<guid>javascript-is-a-string-var-empty-or-null.html</guid>
<pubDate>Thu, 02 Jun 2011 05:42:29 +0000</pubDate>
<description><![CDATA[ This is a common question, and proves useful when you want to validate a form to ensure all fields are filled. The first example compares the variables length to 0 and its value to null, this is because a null string (a string with no content e.g. var myVar = "";) is not equal to a string with value set to null. ]]></description>
</item>
  </channel>
</rss>
