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

Bug #853702 reported by Timo Westkämper on 2011-09-19
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fix Released

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:

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")
  private List<byte[]> contentParts = new ArrayList<byte[]>();


The metamodel is generated as

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  Edit
Everyone can see this information.

Other bug subscribers