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

Bug #853702 reported by Timo Westkämper on 2011-09-19
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);

}

Fixed in master.

Changed in querydsl:
status: New → Fix Committed

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