Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » Teneo/Hibernate Column Annotation Column
Teneo/Hibernate Column Annotation Column [message #609604] Sat, 01 September 2007 08:00
Phaneesh is currently offline PhaneeshFriend
Messages: 16
Registered: July 2009
Junior Member
Hi,

I am trying to use the column annotation to change the length. The attribute
datatype is EString and the Class that has this attribute is in a
sub-package. I tried the model annotation. Through the generated code has
the annotation it is not getting picked up. The column length remains the
same. I also tries to use the JPA annotation directly on the getter method
for that attribute. This also has no effect.
Here is the details of methods that I have tried.
1. Model Annotation:
Source : http://annotation.elver.org/Column
Key: length
Value: 500

In the generated code I see this:
/**
* Returns the value of the '<em><b>Value</b></em>' attribute.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Value</em>' attribute isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Value</em>' attribute.
* @see #setValue(String)
* @see
org.eclipse.hyades.models.common.interactions.Common_Behavio r_InteractionsPackage#getBVRArgument_Value()
* @model annotation="http://annotation.elver.org/Column length='500'"
* @generated
*/
String getValue();

2. JPA annotation
/**
* Returns the value of the '<em><b>Value</b></em>' attribute.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Value</em>' attribute isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Value</em>' attribute.
* @see #setValue(String)
* @see
org.eclipse.hyades.models.common.interactions.Common_Behavio r_InteractionsPackage#getBVRArgument_Value()
*/
@Column(length=500)
String getValue();

Both of these methods fail to change the column length. Please help me in
resolving this issue.

Regards
Phaneesh
Previous Topic:[CDO] 0.8.0
Next Topic:[CDO] 0.8.0
Goto Forum:
  


Current Time: Sat Aug 13 01:19:03 GMT 2022

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

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

Back to the top