Google launched a developer site devoted to the new HTML5 spec. The site is HTML5rocks.com.
Will HTML5 put an end to Flash and Sliverlight?
Google launched a developer site devoted to the new HTML5 spec. The site is HTML5rocks.com.
Will HTML5 put an end to Flash and Sliverlight?
This is primarily a reference post.
This is what we have:
1. A table in our Oracle DB with just key and value pairs (table name is key_value)
2. We have a class KeyValue.java that has two properties: Key and Value
public class KeyValue {
private String key = null;
private String value = null;
// with getters and setters
public getKey…
public setKey…
public getValue…
public setValue…
}
3. And a Hibernate session
Objective: Write a method to query and return a list of KeyValue objects using Hibernate without traversing the Object[] array.
Also a hibernate mapping does not currently exist for the KeyValue class.
Possible issues: Oracle returns aliases in uppercase so Hibernate’s reflection attempts fail.
Hibernate will look for setVALUE and setKEY methods which don’t exist in our KeyValue class. A fix for this issue is to put the alias name within quotes as shown in solution example below.
Solution Example:
public List<KeyValue> getValues() {
StringBuffer sql = new StringBuffer();
sql.append( ” select value as \”value\”, key as \”key\” from key_value order by key asc”)
Query query = getSession().createSQLQuery( sql.toString() )
.addScalar(”value”, Hibernate.STRING).addScalar(”key”, Hibernate.STRING)
.setResultTransformer( Transformers.aliasToBean( KeyValue.class ) );
return query.list();
}
Alfresco is a commercial open source ECM solution that is growing in popularity and marketing itself as a Sharepoint alternative. It started back in 2005 and was later open sourced in 2006. The main objectives of Alfresco are to take on current industry leaders in the ECM market, such as Documentum and Microsoft, by providing a new ECM alternative that provides ease of use and increased user acceptance by improving current ECM features and by providing new functionality.
Alfresco is offered in two different forms - those being the Community and Enterprise editions. The Community edition is free and can be downloaded easily from Alfresco’s website. This version is supported by Alfresco’s developers in addition to a community of developers. The Enterprise edition is a subscription-based offering that includes support and training from Alfresco.
Alfresco is a Java-based application that runs on Microsoft Windows, Linux, and Mac OS. It can run ontop of several Application Servers such as Apache Tomcat, JBoss, BEA WebLogic, and IBM WebSphere. Alfresco can also use several different database backends ranging from Microsoft SQL Server, MySQL, and Oracle. Alfresco’s user directory can also easily integrate into OpenLDAP or Microsoft Active Directory.
A few notable Alfresco customers are: Activision, Electronic Arts, FOX, H&R Block, Kaplan, MIT, and Small Business Association
It’s exciting to note that Sogeti Belgium & Luxembourg are already Alfresco partners in the area of System Integration.