GithubHelp home page GithubHelp logo

Comments (3)

GoogleCodeExporter avatar GoogleCodeExporter commented on September 5, 2024
Hi, syblackwell, Can you give me the sample code? Thanks

Original comment by [email protected] on 19 Aug 2009 at 12:20

from gwt-ent.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 5, 2024
Thnaks for responding to my initial post. I am using gwtEnt 0.5 because .6 
generates 
a massive number of errors due to GWT source not found issues. Although these 
are 
unrelated to gwtEnt code that I use and don't prevent my code from running, it 
creates a lot of debug noise. It would be helpful if you provided more separate 
jar 
files.

Here is my usage of gwtEnt (assume "property" is a String name of a valid class 
member and "bean" is a valid Object implementing Reflection:

            ClassType classType = 
TypeOracle.Instance.getClassType(bean.getClass());
            String gettername = "get" + 
property.substring(0,1).toUpperCase() + property.substring(1);
            Method getter = classType.findMethod(gettername, new 
Type[]{});
            Type returntype = getter.getReturnType();
            return returntype.getClass();

Here is a sample class:

@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class Goal implements Serializable,BeanModelTag,Reflection {

    @PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    @Extension(vendorName="datanucleus", key="gae.encoded-pk", value="true")
    public String uid;

    @Persistent(embedded="true")
    private TimeFrame timeFrame = new TimeFrame();

    @Persistent
    private String name = "";


    public Goal() { 
        }

    public String getName() { return name;  }

    public void setName(String name) { this.name = name; }

        public TimeFrame getTimeFrame() {
        return timeFrame;
    }
    public void setTimeFrame(TimeFrame data) {
        timeFrame.set(data);
    }
}



Original comment by [email protected] on 22 Aug 2009 at 10:03

from gwt-ent.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 5, 2024
Hi,syblackwell, I made that change, now GWTENT only print an log to log tree and
continue the work. thanks

Original comment by [email protected] on 15 Sep 2009 at 5:36

  • Changed state: Fixed

from gwt-ent.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.