> designed to attach generator annotation for numeric keys. However, I'm
> doing this by brute force, overriding the getDeclaration method. I think
> that there's a more elegant way to do this in the customize method for
> fields. Does anyone know how? I'm emitting the following:

Reading the code, it looks like you might be able to mutate the field
mapping in customize(FieldMapping) to configure the identity
generation, and the annotations might get written out automatically.

> Also, is there a way to inject lazy/eager fetch and/or fetch group info
> on the customize method?

The same approach I outlined above should also work for fetch group as well.

-Patrick

On Jan 21, 2008 12:48 PM, Tim Holloway <[EMAIL PROTECTED]> wrote:
> I've been playing around with a customizer for openjpa reverse mapping,
> designed to attach generator annotation for numeric keys. However, I'm
> doing this by brute force, overriding the getDeclaration method. I think
> that there's a more elegant way to do this in the customize method for
> fields. Does anyone know how? I'm emitting the following:
>
>         @Id
>         @GeneratedValue(strategy=GenerationType.IDENTITY)
>         @Column(name="stop_id", columnDefinition="int4")
>         private int stopId;
>
> Also, is there a way to inject lazy/eager fetch and/or fetch group info
> on the customize method?
>
>   Tim Holloway
>
>



-- 
Patrick Linskey
202 669 5907

Reply via email to