We're updating the issue view to help you get more done. 

annotation @ListIndexBase has no runtime retention, so it is not available through AnnotationBinder configuration

Description

replaces old hibernate-specific @IndexColumn annotation by use of JPA annotation @OrderColumn + hibernate-specific @ListIndexBase for list base collection relations of entities.

The ListIndexBase annotation is the only way to set an offset on the list-index position in the collection.

The annotation @ListIndexBase misses the @Retention(RUNTIME) annotation, so ListIndexBase is not available through java reflexion API and hence not available to AnnotationBinder.

All the List collection are then 0-indexed base collections

Find here a simplistic fix for this issue.

I have seen some tests taht are using this annotation, but don't know if they need to be updated to reflect this fix.

Environment

Hibernate final 4.3.7 Postgresql 9.3.6 jdbc driver 9.3.1103.jdbc41

Status

Assignee

Andrea Boriero

Reporter

Alain Mahier

Components

Fix versions

Affects versions

4.3.7

Priority

Major