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

@Column causes StringIndexOutOfBoundsException with embedded id

Description

This is an example of the entity causing the issue:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 @Entity public class News { @EmbeddedId private NewsID newsId; ... } @Embeddable public class NewsID { @Column( name = "id") private String id; private String title; ... }

The exception is thrown by the following type of queries (they refer to only one attribute of the embedded id):

1 SELECT n.newsId.id FROM News n WHERE n.newsId.id = :id

Environment

None

Status

Assignee

Davide D'Alto

Reporter

Davide D'Alto

Labels

None

Worked in

None

Feedback Requested

None

Feedback Requested By

None

backPortable

None

Community Help Wanted

None

Suitable for new contributors

None

Requires Release Note

None

backportDecision

None

backportReEvaluate

None

Components

Priority

Major