Diego Matheus Lenz (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=5c50b5f...
) *created* an issue
Bean Validation (
https://hibernate.atlassian.net/browse/BVAL?atlOrigin=eyJpIjoiZTg3YTgyNmQ...
) / Story (
https://hibernate.atlassian.net/browse/BVAL-754?atlOrigin=eyJpIjoiZTg3YTg...
) BVAL-754 (
https://hibernate.atlassian.net/browse/BVAL-754?atlOrigin=eyJpIjoiZTg3YTg...
) 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=eyJpIjoiZTg3YTg...
)
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=5c50b5f...
)
//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=eyJ...
) Add Comment (
https://hibernate.atlassian.net/browse/BVAL-754#add-comment?atlOrigin=eyJ...
)
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....
) or iOS (
https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=Em...
) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100130- sha1:10d2092 )