Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » Descriptor customizers not invoked
Descriptor customizers not invoked [message #1702324] Tue, 21 July 2015 14:37 Go to next message
Jasper Uyttebroek is currently offline Jasper UyttebroekFriend
Messages: 2
Registered: July 2015
Junior Member
Hi,

I have a Person and Address entity. I need to define custom queries for the update and delete operations of these entities. I wrote a DescriptorCustomizer for each and linked it to my entities by means of the @Customizer annotation. So far so good, upon application startup both customizers are called and queries are successfully customized. But... once I define a relationship from Person to Address (@OneToOne) only the customizer for Address is invoked. Even worse, when I make the relationship bi-directional no customizers are invoked? Who can help me? Below some code snippets

Person
@Entity
@Table(name="JASPER.PERSON")
@Customizer(be.jasper.temptable.persistence.PersonTempTableQueryDescriptorCustomizer.class)
public class Person{
...
	@OneToOne
	@JoinColumn(name="ADDRESS_ID")
	private Address address;
...


Address
@Entity
@Table(name="JASPER.ADDRESS")
@Customizer(be.jasper.temptable.persistence.AddressTempTableQueryDescriptorCustomizer.class)
public class Address {
...
@OneToOne(mappedBy="address")
	private Person person;
...


public class PersonTempTableQueryDescriptorCustomizer implements DescriptorCustomizer {
	
	public void customize(ClassDescriptor descriptor) throws Exception {

           ...


similar for AddressTempTableQueryDescriptorCustomizer
Re: Descriptor customizers not invoked [message #1702373 is a reply to message #1702324] Tue, 21 July 2015 21:23 Go to previous message
Jasper Uyttebroek is currently offline Jasper UyttebroekFriend
Messages: 2
Registered: July 2015
Junior Member
Ok, found the problem myself in the meanwhile. An exception in my Customizer which didn't bubble up... Case closed
Previous Topic:Criteria API and Regexp
Next Topic:How to clear the sequence preallocation pool?
Goto Forum:
  


Current Time: Sun Feb 28 14:09:33 GMT 2021

Powered by FUDForum. Page generated in 0.02086 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top