Archive for March, 2007

Hibernate Mapping Types

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

Test your Spring - Hibernate Applications using Unitils

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

Spring IDE 2.0 M3

 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

phpBB : Create your own forum

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

Guice from google

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

Next Page »


View Lijin Joseji's profile on LinkedIn

Disclaimer

The information on this site is for informational purposes only. The use of any Trademark or Copyrighted material is not intended to infringe Copyright. This blog is intended to be used under a policy of personal and non commercial use.

Adds

Add to Google

Blog Stats

  • 106,358 hits

Categories