java - When creating generic class objects I am getting null. Why? -
I am getting zero values when creating
ObjectifyGenericDao public class & lt; T & gt; {Safe class & lt; T & gt; Clazz; Public T getByProperty (String Prop Name, Object Propulsion) {// The Null System is Returning. Out.println (this.clazz); }}
I am accessing such an object
ObjectifyGenericDao & lt; Users & gt; Dao = Insert new object & lt; Users & gt; (User.class); User user = dao.getByProperty ("user_id", userId);
How does it compile? You are not returning anything by this method, which announces a return type. Would you please post more than Claude? There is no manufacturer.
Comments
Post a Comment