Problem with @ElementCollection(targetClass = byte[].class, fetch = FetchType.LAZY)

Bug #853702 reported by Timo Westkämper
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Querydsl
Fix Released
Undecided
Unassigned

Bug Description

When switching from QueryDSL 2.1.2 to QueryDSL 2.2.x we experience the following exception when generating the QueryDSL metamodel:

type parameter com.mysema.query.types.path.ArrayPath<java.lang.Byte[]> is not within its bound

The corresponding snipped of our Entity class is:

@Entity
public class BinaryFile implements IDomainClass {

  /** file content (split into chunks of {@link #chunkSize} bytes) */
  @ElementCollection(targetClass = byte[].class, fetch = FetchType.LAZY)
  @CollectionTable(name = "BinaryFilePart", joinColumns = @JoinColumn(name = "FILE_ID"))
  @OrderColumn(name = "partNo")
  @Column(name = "content")
  @Lob
  private List<byte[]> contentParts = new ArrayList<byte[]>();

}

The metamodel is generated as

@Generated("com.mysema.query.codegen.EntitySerializer")
public class QBinaryFile extends EntityPathBase<BinaryFile> {

public final ListPath<Byte[], ArrayPath<Byte[]>> contentParts = this.<Byte[], ArrayPath<Byte[]>>createList("contentParts", Byte[].class, ArrayPath.class);

}

Revision history for this message
Timo Westkämper (timo-westkamper) wrote :

Fixed in master.

Changed in querydsl:
status: New → Fix Committed
Revision history for this message
Timo Westkämper (timo-westkamper) wrote :

Released in 2.2.3

Changed in querydsl:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.