[hibernate-issues] [JIRA] (BVAL-754) HSEARCH000212: An exception occurred while the MassIndexer was transforming identifiers to Lucene Documents ClassCastException: class ProjectSystemEntityPk cannot be cast to class java.lang.Long (ProjectSystemEntityPk is in unnamed module of loader

Diego Matheus Lenz (JIRA) jira at hibernate.atlassian.net
Mon Jun 22 13:27:59 EDT 2020


Diego Matheus Lenz ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=5c50b5f85f6f554665c142a3 ) *created* an issue

Bean Validation ( https://hibernate.atlassian.net/browse/BVAL?atlOrigin=eyJpIjoiZTg3YTgyNmQxOTQ3NGQyNDk2NWI1YTkzYzBmNTk0ZTQiLCJwIjoiaiJ9 ) / Story ( https://hibernate.atlassian.net/browse/BVAL-754?atlOrigin=eyJpIjoiZTg3YTgyNmQxOTQ3NGQyNDk2NWI1YTkzYzBmNTk0ZTQiLCJwIjoiaiJ9 ) BVAL-754 ( https://hibernate.atlassian.net/browse/BVAL-754?atlOrigin=eyJpIjoiZTg3YTgyNmQxOTQ3NGQyNDk2NWI1YTkzYzBmNTk0ZTQiLCJwIjoiaiJ9 ) HSEARCH000212: An exception occurred while the MassIndexer was transforming identifiers to Lucene Documents ClassCastException: class ProjectSystemEntityPk cannot be cast to class java.lang.Long (ProjectSystemEntityPk is in unnamed module of loader ( https://hibernate.atlassian.net/browse/BVAL-754?atlOrigin=eyJpIjoiZTg3YTgyNmQxOTQ3NGQyNDk2NWI1YTkzYzBmNTk0ZTQiLCJwIjoiaiJ9 )

Issue Type: Story Assignee: Unassigned Created: 22/Jun/2020 10:27 AM Priority: Minor Reporter: Diego Matheus Lenz ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=5c50b5f85f6f554665c142a3 )

//class

@MappedSuperclass
public abstract class ProjectSystemEntity<ID extends Serializable> extends CommonExtractorEntity<ID> {

@Transient
private static final long serialVersionUID = 1L;

@EmbeddedId
@FieldBridge(impl = testeBridge.class)
@AttributeOverrides(

{ @AttributeOverride( name = "project", column = @Column(name = "project_id", insertable = false) ), @AttributeOverride( name = "system_id", column = @Column(name = "system_id", insertable = false) ), @AttributeOverride( name = "cid", column = @Column(name = "cid", columnDefinition = "bigserial", insertable = false, updatable = false, nullable = false) ) }

)
private ProjectSystemEntityPk<Long> scope;

@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "cid", columnDefinition = "bigserial", insertable = false, updatable = false, nullable = false)
private Long cid;

@ManyToOne
@JoinColumn(name = "system_id", insertable = false, updatable = false)
protected System system;

@Column(columnDefinition = "bigserial", insertable = false, updatable = false, nullable = false)
@GeneratedValue(strategy = GenerationType.IDENTITY)

@DocumentId
protected Long id;

//class abstract
@Entity
@JsonIgnoreProperties(

{"hibernateLazyInitializer", "handler"}

)
@Table
@Indexed
@AnalyzerDef(name = "customAnalyzer",
tokenizer = @TokenizerDef(factory = StandardTokenizerFactory.class),
filters = {
@TokenFilterDef(factory = LowerCaseFilterFactory.class),
@TokenFilterDef(factory = ASCIIFoldingFilterFactory.class),
// @TokenFilterDef(factory = MappingCharFilterFactory.class),
@TokenFilterDef(factory = SnowballPorterFilterFactory.class, params =

{ @Parameter(name = "language", value = "English") }

)
})
public class Medico extends ProjectSystemEntity<Long> {
public Medico() {
}

/*-------------------------------------------------------------------

* ATTRIBUTES
*-------------------------------------------------------------------* /
// @Id
// @GeneratedValue(strategy = GenerationType.IDENTITY)
// @Basic(fetch = FetchType.LAZY)
// private Long id;

@Column(length = 255)
@Field//(index = Index.YES, analyze = Analyze.YES)//(index = Index.YES, store = Store.YES, analyze=Analyze.NO)
@Analyzer(definition = "customAnalyzer")
// @DocumentId
private String nome;

( https://hibernate.atlassian.net/browse/BVAL-754#add-comment?atlOrigin=eyJpIjoiZTg3YTgyNmQxOTQ3NGQyNDk2NWI1YTkzYzBmNTk0ZTQiLCJwIjoiaiJ9 ) Add Comment ( https://hibernate.atlassian.net/browse/BVAL-754#add-comment?atlOrigin=eyJpIjoiZTg3YTgyNmQxOTQ3NGQyNDk2NWI1YTkzYzBmNTk0ZTQiLCJwIjoiaiJ9 )

Get Jira notifications on your phone! Download the Jira Cloud app for Android ( https://play.google.com/store/apps/details?id=com.atlassian.android.jira.core&referrer=utm_source%3DNotificationLink%26utm_medium%3DEmail ) or iOS ( https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=EmailNotificationLink&mt=8 ) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100130- sha1:10d2092 )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/hibernate-issues/attachments/20200622/68cf3b34/attachment.html 


More information about the hibernate-issues mailing list