Open in app

Sign In

Write

Sign In

altuure
altuure

6 Followers

Home

About

Published in altuure

·Oct 2, 2012

How to Install PostgreSQL 9.2 on Ubuntu 12

sudo apt-get install python-software-properties sudo add-apt-repository ppa:pitti/postgresql sudo apt-get update sudo apt-get install postgresql-9.2 hopefully will move from mysql to postgresql I will try to publish some performance comparision !!! cheers

Lnux

1 min read

Lnux

1 min read


Published in altuure

·Jan 10, 2012

just launched achivy.com…

Hi everybody, this was my surprise project , achivy.com my first startup, my first ruby on rails project :) you can check the about page but it is simply a gamification platform for lots of social sites and more, it now supports foursquare, gowalla, stackoverflow etc…. Achivy adds some fun and gamification to your social life. Add Twitter,Tumblr, Foursquare Gowalla , Flickr, Stackoverflow, Klout and many other applications to your profile to see how many achievements, badges,scores you have and follow your progress. You can keep up with your friends, and see the other people’s achievements and activities — achivies.

News

1 min read

News

1 min read


Published in altuure

·Oct 11, 2011

todo list

[caption id=”” align=”alignright” width=”240" caption=”Image by alancleaver_2000 via Flickr”] [/caption] it has been a long time since I posted :( so it would be really good to put some targets and build a list of them. otherwise I will be lying on my coach all the time. ruby on rails experience : so far so amazing. yagdao : finalize and release 1.0 startupweekend amsterdam notes ! anybody for utrecht ?

Notes

1 min read

Notes

1 min read


Published in altuure

·Dec 9, 2010

Release Notes: com.altuure.yagdao-0.3.jar

Append Method handler Another dynamic query builder. But this one , use simple StringBuilder instead of trying to parse the argument. So more fast and adjustable dynamic query builder For more see test cases and example dao @YMethod(type = YMethodType.APPEND,select = "pbyte,count(id)",groupBy = "pbyte") List<SimpleBean> append2(@YParameter("pint>=?") int i); @YMethod(type =…

Notes

1 min read

Notes

1 min read


Published in altuure

·Nov 3, 2010

com.altuure.yagdao-0.2.jar

yagdao (Yet Another Generic DAO) finally. this version is a little bit experimental but stable. yagdao is an generic dao framework that would be enabled by annotations. simple step to go through for setup read more add jar into your classpath extend GenericDAO moreover you can implement custom method read more

Notes

1 min read

Notes

1 min read


Published in altuure

·Oct 25, 2010

Retrieving Id field from JPA and Hibernate

for hibernate public String getIdProperty(Class entityClass) { String idProperty=sessionAccessor.getSessionFactory() .getClassMetadata(entityClass) .getIdentifierPropertyName(); return idProperty; } for JPA 2.0 metamodel API this method or to get value of id field see comment below public String getIdProperty(Class entityClass) { String idProperty; Metamodel metamodel = getEntityManager().getMetamodel(); EntityType entity = metamodel.entity(entityClass); Set<SingularAttribute> singularAttributes = entity.getSingularAttributes(); for (SingularAttribute singularAttribute : singularAttributes) { if (singularAttribute.isId()){ idProperty=singularAttribute.getName(); break; } } if(idProperty==null) throw new RuntimeException("id field not found"); return idProperty; }

Criteria

1 min read

Criteria

1 min read


Published in altuure

·Sep 23, 2010

JPA Criteria API by samples — Part-II

JPA Criteria API by samples — Part-I some more examples with JPA criteria API Simple Join query long category=200L; Query query = entityManager.createQuery(“select s from OrderItem s where s.product.category=:cat”); query.setParameter(“cat”, category); List<OrderItem> list = query.getResultList(); CriteriaBuilder criteriaBuilder = entityManager.getCriteriaBuilder(); CriteriaQuery<Object> criteriaQuery = criteriaBuilder.createQuery(); Root<OrderItem> from = criteriaQuery.from(OrderItem.class); Path<Object> path = from.join(“product”).get(“category”); CriteriaQuery<Object> select = criteriaQuery.select(from); select.where(criteriaBuilder.equal(path, category)); TypedQuery<Object> typedQuery =…

Criteria

1 min read

Criteria

1 min read


Published in altuure

·Sep 23, 2010

JPA Criteria API by samples — Part-I

Although examples are pretty much simple it will help you with finalized version of JPA 2.0 API. For Part II please read JPA Criteria API by samples — Part-II and in this examples in my opinion building query by programming is not so easy and maintainable but still possible. PS…

Criteria

2 min read

Criteria

2 min read


Published in altuure

·Sep 21, 2010

hibernate criteria API bug: unnecessary fetch

Although this is an important, it is a hidden bug unless you trace you generated SQL for hibernate. simply the two lines of code below should generate same SQL Criteria rootCriteria = session.createCriteria(OrderItem.class); Criteria criteria = rootCriteria.createCriteria("order").createCriteria("customer")…

Notes

1 min read

Notes

1 min read


Published in altuure

·Aug 31, 2010

How to get Generic Metadata from a Class at Runtime

Here you can see how to traverse the runtime information to get this information. You Can simply traverse the inheritance tree ofr the class and get the metadata of the generic definition. Somthing like public static Type[] getGenericDefinitons(Class classFrom, Class class1) ; Type[] types=getGenericDefinitons(MockClass1.class,GenericInterface.class);//[String.class,Long.class,Integer.class] expected

Generics

2 min read

Generics

2 min read

altuure

altuure

6 Followers

#expat #amsterdam #cycling

Following
  • Alper Köse

    Alper Köse

  • Wojciech Tekiela

    Wojciech Tekiela

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech