cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrus Adamchik (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CAY-1999) Unneeded Property import for superclasses with no properties
Date Fri, 03 Apr 2015 10:17:53 GMT
Andrus Adamchik created CAY-1999:
------------------------------------

             Summary: Unneeded Property import for superclasses with no properties
                 Key: CAY-1999
                 URL: https://issues.apache.org/jira/browse/CAY-1999
             Project: Cayenne
          Issue Type: Improvement
    Affects Versions: 4.0.M3
            Reporter: Andrus Adamchik
            Assignee: Savva Kolbachev
            Priority: Minor


Not sure if this happened before, but I noticed this happen with M3 master build that includes
CAY-1991 feature (which works great btw). I have a class that has no properties (it actually
inherits from another entity class, but I am not sure this is relevant). Still import of "org.apache.cayenne.exp.Property"
is included, giving a warning in Eclipse. Not critical, just something to clean up when we
have time. 

{noformat}
package com.foo.auto;

import org.apache.cayenne.exp.Property;

import com.foo.Super;

/**
 * Class _Sub was generated by Cayenne.
 * It is probably a good idea to avoid changing this class manually,
 * since it may be overwritten next time code is regenerated.
 * If you need to make any customizations, please use subclass.
 */
public abstract class _Sub extends Super {

    private static final long serialVersionUID = 1L; 
    public static final String ID_PK_COLUMN = "ID";
}
{noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message