You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by "Andrus Adamchik (JIRA)" <ji...@apache.org> on 2015/04/29 08:33:06 UTC
[jira] [Reopened] (CAY-1999) Unneeded Property import for
superclasses with no properties
[ https://issues.apache.org/jira/browse/CAY-1999?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andrus Adamchik reopened CAY-1999:
----------------------------------
[~SavvaKolbachev] : the implementation broke cases of entities with zero attributes, but some relationships. For those we also need Property import.
> 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
> Fix For: 4.0.M3
>
>
> 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)