Archive: March, 2007

Hibernate Mapping Types

No comments March 28th, 2007
In every hibernate mapping files, we used to denote the “type” of the mapping variable. This type is actually known as Hibernate mapping types.
These are very much different from SQL database types as well as Java data types. Here you can find a list of Hibernate mapping types. Source : here
integer, long, short
Java primitives or wrapper classes to appropriate (vendor-specific) SQL column types.
float, double
Java primitives or wrapper classes to appropriate (vendor-specific) SQL column types.
character, byte
Java primitives or wrapper classes to appropriate (vendor-specific) SQL column types.
boolean, yes_no, true_false
Alternative encodings for a Java boolean or java.lang.Boolean
string
java.lang.String to VARCHAR (or Oracle VARCHAR2).
date, time, timestamp
java.util.Date and its subclasses to SQL types DATE, TIME and TIMESTAMP (or equivalent).
calendar, calendar_date
java.util.Calendar to SQL types TIMESTAMP and DATE (or equivalent).
big_decimal, big_integer
java.math.BigDecimal and java.math.BigInteger to NUMERIC (or Oracle NUMBER).
locale, timezone, currency
java.util.Locale, java.util.TimeZone and java.util.Currency to VARCHAR (or Oracle VARCHAR2). Instances of Locale and Currency are mapped to their ISO codes. Instances of TimeZone are mapped to their ID
class
java.lang.Class to VARCHAR (or Oracle VARCHAR2). A Class is mapped to its fully qualified name.
binary
Maps byte arrays to an appropriate SQL binary type.
text
Maps long Java strings to a SQL CLOB or TEXT type.
serializable
Maps serializable Java types to an appropriate SQL binary type. You may also indicate the Hibernate type serializable with the name of a serializable Java class or interface that does not default to a basic type.
clob, blob
Type mappings for the JDBC classes java.sql.Clob and java.sql.BlobThese types may be inconvenient for some applications, since the blob or clob object may not be reused outside of a transaction. (Furthermore, driver support is patchy and inconsistent.)
Technorati: Hibernate
Book Mark it-> del.icio.us | Reddit | Slashdot | Digg | Facebook | Technorati | Google | StumbleUpon | Window Live | Tailrank | Furl | Netscape | Yahoo | BlinkList

Popularity: 4% [?]

Bookmark this on BuzzURLBookmark this on BuzzURL Post to TwitterTweets for this web page Bookmark this on FC2 Bookmark newsing it! Choix it! Add to Google Bookmark Bookmark this on Delicious Digg This

Test your Spring – Hibernate Applications using Unitils

No comments March 26th, 2007

Unitils is an open source library aimed at making unit testing easy and maintainable. Unitils builds further on existing libraries like DBUnit and EasyMock and integrates with JUnit and TestNG. This article will help you to test Spring- hibernate applications easily using unitles.

Technorati: spring, hibernate, unitils

Book Mark it-> del.icio.us | Reddit | Slashdot | Digg | Facebook | Technorati | Google | StumbleUpon | Window Live | Tailrank | Furl | Netscape | Yahoo | BlinkList

Popularity: 1% [?]

Bookmark this on BuzzURLBookmark this on BuzzURL Post to TwitterTweets for this web page Bookmark this on FC2 Bookmark newsing it! Choix it! Add to Google Bookmark Bookmark this on Delicious Digg This

Spring IDE 2.0 M3

No comments March 21st, 2007

 The Spring IDE team has released the latest version of Spring IDE, which includes great visualizing support to increase productivity. Here is the text from official spring site.

The new features includes the highly-anticipated Spring Web Flow graphical visualizer and editor. The new support allows developers to edit XML-based flow definitions graphically, and enables greater productivity and communication with end users.

In addition to the graphical piece, Spring IDE 2.0 M3 also delivers a Web Flow XML editor that provides content assist and semantic validation to improve the quality of your flow definitions. : Source: www.springframework.org

Technorati: Spring, Spring IDE

Book Mark it-> del.icio.us | Reddit | Slashdot | Digg | Facebook | Technorati | Google | StumbleUpon | Window Live | Tailrank | Furl | Netscape | Yahoo | BlinkList

Popularity: 1% [?]

Bookmark this on BuzzURLBookmark this on BuzzURL Post to TwitterTweets for this web page Bookmark this on FC2 Bookmark newsing it! Choix it! Add to Google Bookmark Bookmark this on Delicious Digg This

phpBB : Create your own forum

220 comments March 20th, 2007

Do you want to create your own forum? here is the best way for that !

phpBB is a popular internet forum package written in the PHP programming language started by James Atkinson. The name “phpBB” is an abbreviation of PHP Bulletin Board. It is available under the GNU General Public License and its free. Its configuration is also very simple.

Some of phpBB’s strengths are:

* A templated style system intended to allow easy customisation.
* Support for internationalization; 64 translations are available as of 2006. [14]
* Compatibility with multiple database management systems.
* A large community of users providing free support and customisations.

Technorati tags: phpBB, php

Book Mark it-> del.icio.us | Reddit | Slashdot | Digg | Facebook | Technorati | Google | StumbleUpon | Window Live | Tailrank | Furl | Netscape | Yahoo | BlinkList

Popularity: 6% [?]

Bookmark this on BuzzURLBookmark this on BuzzURL Post to TwitterTweets for this web page Bookmark this on FC2 Bookmark newsing it! Choix it! Add to Google Bookmark Bookmark this on Delicious Digg This

Guice from google

No comments March 16th, 2007

Guice is a lightweight dependency injection framework for Java 5 from the house of google. Guice injects constructors, fields and methods (any methods with any number of arguments, not just setters). Guice includes advanced features such as custom scopes, circular dependencies, static member injection, Spring integration, and AOP Alliance method interception etc. See more on this project page.

Technorati tags: Google, Guice, IoC ,Spring

Book Mark it-> del.icio.us | Reddit | Slashdot | Digg | Facebook | Technorati | Google | StumbleUpon | Window Live | Tailrank | Furl | Netscape | Yahoo | BlinkList

Popularity: 1% [?]

Bookmark this on BuzzURLBookmark this on BuzzURL Post to TwitterTweets for this web page Bookmark this on FC2 Bookmark newsing it! Choix it! Add to Google Bookmark Bookmark this on Delicious Digg This