Annotating collection with @OrderBy without specifying attribute does nothing. According to http://docs.oracle.com/javaee/6/api/javax/persistence/OrderBy.html, it should order by primary key. This is regression since 4.1.5.