MyEclipse Forums
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
DevAlternatives
Post subject: Change Calendar type on domain attributes for java.util.Date  PostPosted: Apr 27, 2012 - 11:00 PM
Registered Member
Registered Member


Joined: Mar 08, 2012
Posts: 34

Hi,

I need to change the Calendar type to java.util.Date for the spring mvc scaffolding
Code:

   @Temporal(TemporalType.DATE)
   @Column(name = "F_FECHA_INICIO", nullable = false)
   @Basic(fetch = FetchType.EAGER)
   @XmlElement
   Date ffechainicio;


I notice that the domain objects are generated on the DataType.jet but the attribute types are already defined in the model .

On a previous post we accomplish a similar task by an extension point in the plugin on the TableDataTypeInputProvider for changing the names in each of the attributes, can you help us to provide a similar aproach in order to use java.util.Date instead of Calendar for the date types.


I'm using Oracle 11g and MyEclipse 10

Thanks,

http://www.myeclipseide.com/PNphpBB2-viewtopic-t-28824-highlight-camelcase-sid-e78f25cef0701c60d7f5661fd348616a.html

Code:

public class CustomTableDataTypeInputProvider extends
      TableDataTypeInputProvider {
   protected List<DataType> generateDataTypes() throws InterruptedException {
      List<DataType> dataTypes = super.generateDataTypes();

      try {
         for (DataType dataType : dataTypes) {
            for (org.skyway.core.model.data.Field field : dataType
                  .getFields()) {
               field.setName(parser(field.getName()));
            }
         }

         return dataTypes;
      } catch (Throwable t) {
         throw new RuntimeException(
               "Unable to load data type from table(s): "
                     + getDataTypeInputs(), t);
      }
   }

}
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
cconway
Post subject:   PostPosted: May 03, 2012 - 01:05 AM



Joined: Apr 04, 2011
Posts: 196

I have escalated this question to a developer and will post a reply once I have more information.

_________________
Cindy
MyEclipse for Spring Support
 
 View user's profile Send private message Send e-mail  
Reply with quote Back to top
DevAlternatives
Post subject: feedback  PostPosted: May 10, 2012 - 10:46 PM
Registered Member
Registered Member


Joined: Mar 08, 2012
Posts: 34

Hi cindy,

For this case, Is there any feedback from the developer ? Thanks in advance

Thanks,
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
DevAlternatives
Post subject: Feedback  PostPosted: May 30, 2012 - 04:25 PM
Registered Member
Registered Member


Joined: Mar 08, 2012
Posts: 34

Hi,

We didn't receive any feedback from myeclipse in this case, can we have some updates on the topic.

Thanks,
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits