- 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
Archive for March, 2007
Test your Spring - Hibernate Applications using Unitils
Published March 26, 2007 Hibernate , JUnit , Spring , unitils 2 CommentsSpring IDE 2.0 M3
Published March 21, 2007 Spring , Spring Framework , Spring Web Flow , xml 0 Comments 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
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.
Guice from google
Published March 16, 2007 Frameworks , Google , Spring , guice , ioc , opensource 0 CommentsGuice 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.