malaguna’s boring blog

Hello World!

| Comments

Hi, this is my very first post in octopress ;) so it is a kind of hello world!

I need to probe several things about markdown syntax:

  • lists
  • code
  • something else
Java sample code
1
2
3
4
5
6
7
8
9
10
11
//This is some comment 
public String someSqlMethod(Integer id) {
  String query = "select column from table where id = :id";

  Object result = session.createSQLQuery(query)
      .addScalar("column")
      .setInteger("id", id)
      .uniqueResult();

  return (result !=null)?(String) result:null;
}

It looks like perfect!

Comments