Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » DDL generation with WriteTransformer
DDL generation with WriteTransformer [message #387763] Thu, 07 May 2009 07:32 Go to next message
Sven Hoffmann is currently offline Sven HoffmannFriend
Messages: 18
Registered: July 2009
Junior Member
Hi,

I found that DDL generation of EclipseLink 1.1 does not take the attribute
length of WriteTransformer's column attribute into account.

I configured ReadTransformer and WriteTransformer on an entities attribute
as follows:
@ReadTransformer(method = "readDeliveryInstructions")
@WriteTransformer(method = "writeDeliveryInstructions", column =
@Column(name = "INSTRUCTIONS", length = 228))
private List<String> instructions;

Return value of WriteTransformer is of type java.lang.String.

The generated DDL contains VARCHAR(255) which is the default value of
String fields.

Is there way to make sure the define length is used in the generated DDL?
Should i file a bug?

Best regards,
Sven
Re: DDL generation with WriteTransformer [message #387764 is a reply to message #387763] Thu, 07 May 2009 13:44 Go to previous message
Sven Hoffmann is currently offline Sven HoffmannFriend
Messages: 18
Registered: July 2009
Junior Member
> Is there way to make sure the define length is used in the generated DDL?
To answer my own question...
By adding the attribute columnDefinition I was able to generate the
expected DDL.
Previous Topic:Can we dosover the fields in a table using eclipse link?
Next Topic:Help using the Dynamic JPA
Goto Forum:
  


Current Time: Thu Apr 25 01:48:50 GMT 2024

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

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

Back to the top