A Techno Blog, mainly about Java


link :"This article discusses a technique for managing the build order of
    separate sub-projects in a large software system purely using task
    dependencies within Ant scripts."

March 21, 2006 Posted by | SW Tools | Leave a comment

Native SQL in Hibernate3

         StringBuffer sql = new StringBuffer();
        sql.append("select david.field1 as myfield1, david.field2 as myfield2 drom david.table1");          
        SQLQuery sqlQuery = getSession().createSQLQuery(sql.toString());
        sqlQuery.addScalar("myfield1", Hibernate.TIMESTAMP);
        sqlQuery.addScalar("myfield2", Hibernate.INTEGER);
        List results = sqlQuery.list();


March 21, 2006 Posted by | Hibernate & ORM | Leave a comment