Uploaded image for project: 'Hibernate OGM'
  1. OGM-1551

@Column causes StringIndexOutOfBoundsException with embedded id

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects versions: None
    • Fix versions: None
    • Components: mongodb
    • Labels:
      None

      Description

      This is an example of the entity causing the issue:

      @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):

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

        Attachments

          Issue links

            Activity

              People

              • Assignee:
                davided Davide D'Alto
                Reporter:
                davided Davide D'Alto
                Participants:
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: