{"action":"opened","issue":{"url":"https://api.github.com/repos/objectbox/objectbox-java/issues/534","repository_url":"https://api.github.com/repos/objectbox/objectbox-java","labels_url":"https://api.github.com/repos/objectbox/objectbox-java/issues/534/labels{/name}","comments_url":"https://api.github.com/repos/objectbox/objectbox-java/issues/534/comments","events_url":"https://api.github.com/repos/objectbox/objectbox-java/issues/534/events","html_url":"https://github.com/objectbox/objectbox-java/issues/534","id":352790248,"node_id":"MDU6SXNzdWUzNTI3OTAyNDg=","number":534,"title":"Field type \"com.xxx.remote.bean.ChatBean.ComtentsBean\" is not supported. Consider making the target an @Entity, or using @Convert or @Transient on the field (see docs)","user":{"login":"lvzesong","id":15241976,"node_id":"MDQ6VXNlcjE1MjQxOTc2","avatar_url":"https://avatars1.githubusercontent.com/u/15241976?v=4","gravatar_id":"","url":"https://api.github.com/users/lvzesong","html_url":"https://github.com/lvzesong","followers_url":"https://api.github.com/users/lvzesong/followers","following_url":"https://api.github.com/users/lvzesong/following{/other_user}","gists_url":"https://api.github.com/users/lvzesong/gists{/gist_id}","starred_url":"https://api.github.com/users/lvzesong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lvzesong/subscriptions","organizations_url":"https://api.github.com/users/lvzesong/orgs","repos_url":"https://api.github.com/users/lvzesong/repos","events_url":"https://api.github.com/users/lvzesong/events{/privacy}","received_events_url":"https://api.github.com/users/lvzesong/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-22T03:30:15Z","updated_at":"2018-08-22T03:30:15Z","closed_at":null,"author_association":"NONE","body":"*Before creating a new issue, make sure that you checked: (1) existing issues, (2) docs (3) FAQ.\r\nTEMPLATE FOR ISSUES ONLY - for feature requests just delete the text and start fresh.\r\nPlease help us to fix issues asap: this template reduces checking with you back and forth.\r\nReplace italic sections with your input.\r\nFor __support questions__, please use [stackoverflow with the [objectbox] tag](https://stackoverflow.com/questions/tagged/objectbox) - we get notified.*\r\n\r\n## Issue Basics\r\n- ObjectBox version (are using the latest version?): *?*\r\n- Reproducibility: *[occurred once only | occasionally without visible pattern | always]*\r\n\r\n## Reproducing the bug\r\n### Description\r\n*how to sovle this case？(怎么解决啊？)*\r\n\r\n### Code\r\n*Provide the code triggering the bug.\r\n\r\n@Entity\r\npublic class ChatBean implements Observable, Comparable<ChatBean> {\r\n\r\n    public void setDivider(boolean divider) {\r\n        isDivider = divider;\r\n    }\r\n\r\n    /**\r\n     * news_id : 2266\r\n     * addtime : 1533785214\r\n     * user_id : 674\r\n     * comtents : {\"type\":\"img\",\"imgsrc\":\"http://192.168.0.200:81/sixin/20180809/1533785213929pKHPF5.jpg\",\"thumsrc\":\"http://192.168.0.200:81/sixin/20180809/thumb_1533785213929pKHPF5.jpg\"}\r\n     * nickname : 李XX\r\n     * iconsrc : https://info.highzou.com/images/icon/man.png\r\n     * usertype : 0\r\n     * gender : 1\r\n     */\r\n    @Id\r\n    private long id;\r\n\r\n    //时间分割\r\n    @Transient\r\n    private boolean isDivider;\r\n\r\n    public int getNews_id() {\r\n        return news_id;\r\n    }\r\n\r\n    public void setNews_id(int news_id) {\r\n        this.news_id = news_id;\r\n    }\r\n\r\n    private int news_id;\r\n    private String addtime;\r\n    private String user_id;\r\n\r\n    private ComtentsBean comtents;\r\n    private String nickname;\r\n    private String iconsrc;\r\n    private String usertype;\r\n    private String gender;\r\n    @Transient\r\n    private transient PropertyChangeRegistry propertyChangeRegistry = new PropertyChangeRegistry();\r\n\r\n//    @Bindable\r\n//    public String getNews_id() {\r\n//        return news_id;\r\n//    }\r\n//\r\n//    public void setNews_id(String news_id) {\r\n//        this.news_id = news_id;\r\n//        notifyChange(BR.news_id);\r\n//    }\r\n\r\n    @Bindable\r\n    public String getAddtime() {\r\n        return addtime;\r\n    }\r\n\r\n    public void setAddtime(String addtime) {\r\n        this.addtime = addtime;\r\n        notifyChange(BR.addtime);\r\n    }\r\n\r\n    @Bindable\r\n    public String getUser_id() {\r\n        return user_id;\r\n    }\r\n\r\n    public void setUser_id(String user_id) {\r\n        this.user_id = user_id;\r\n        notifyChange(BR.user_id);\r\n    }\r\n\r\n    @Bindable\r\n    public ComtentsBean getComtents() {\r\n        return comtents;\r\n    }\r\n\r\n    public void setComtents(ComtentsBean comtents) {\r\n        this.comtents = comtents;\r\n        notifyChange(BR.comtents);\r\n    }\r\n\r\n    @Bindable\r\n    public String getNickname() {\r\n        return nickname;\r\n    }\r\n\r\n    public void setNickname(String nickname) {\r\n        this.nickname = nickname;\r\n        notifyChange(BR.nickname);\r\n    }\r\n\r\n    @Bindable\r\n    public String getIconsrc() {\r\n        return iconsrc;\r\n    }\r\n\r\n    public void setIconsrc(String iconsrc) {\r\n        this.iconsrc = iconsrc;\r\n        notifyChange(BR.iconsrc);\r\n    }\r\n\r\n    @Bindable\r\n    public String getUsertype() {\r\n        return usertype;\r\n    }\r\n\r\n    public void setUsertype(String usertype) {\r\n        this.usertype = usertype;\r\n        notifyChange(BR.usertype);\r\n    }\r\n\r\n    @Bindable\r\n    public String getGender() {\r\n        return gender;\r\n    }\r\n\r\n    public void setGender(String gender) {\r\n        this.gender = gender;\r\n        notifyChange(BR.gender);\r\n    }\r\n\r\n    @Bindable\r\n    public boolean isDivider() {\r\n        return isDivider;\r\n    }\r\n\r\n\r\n    private synchronized void notifyChange(int propertyId) {\r\n        if (propertyChangeRegistry == null) {\r\n            propertyChangeRegistry = new PropertyChangeRegistry();\r\n        }\r\n        propertyChangeRegistry.notifyChange(this, propertyId);\r\n    }\r\n\r\n    @Override\r\n    public synchronized void addOnPropertyChangedCallback(OnPropertyChangedCallback callback) {\r\n        if (propertyChangeRegistry == null) {\r\n            propertyChangeRegistry = new PropertyChangeRegistry();\r\n        }\r\n        propertyChangeRegistry.add(callback);\r\n\r\n    }\r\n\r\n    @Override\r\n    public synchronized void removeOnPropertyChangedCallback(OnPropertyChangedCallback callback) {\r\n        if (propertyChangeRegistry != null) {\r\n            propertyChangeRegistry.remove(callback);\r\n        }\r\n    }\r\n\r\n    @Override\r\n    public String toString() {\r\n        return \"ChatBean{\" +\r\n                \"isDivider=\" + isDivider +\r\n                \", news_id='\" + news_id + '\\'' +\r\n                \", addtime='\" + addtime + '\\'' +\r\n                \", user_id='\" + user_id + '\\'' +\r\n                \", comtents=\" + comtents +\r\n                \", nickname='\" + nickname + '\\'' +\r\n                \", iconsrc='\" + iconsrc + '\\'' +\r\n                \", usertype='\" + usertype + '\\'' +\r\n                \", gender='\" + gender + '\\'' +\r\n                \", propertyChangeRegistry=\" + propertyChangeRegistry +\r\n                '}';\r\n    }\r\n\r\n    @Override\r\n    public boolean equals(Object obj) {\r\n        if (obj instanceof ChatBean) {\r\n            return ((ChatBean) obj).news_id == news_id;\r\n        } else {\r\n            return false;\r\n        }\r\n\r\n    }\r\n\r\n    @Override\r\n    public int compareTo(@NonNull ChatBean o) {\r\n        return Long.valueOf(addtime) > Long.valueOf(o.addtime) ? 1 : -1;\r\n    }\r\n\r\n    public long getId() {\r\n        return id;\r\n    }\r\n\r\n    public void setId(long id) {\r\n        this.id = id;\r\n    }\r\n\r\n    @Entity\r\n    public static class ComtentsBean {\r\n        /**\r\n         * type : img\r\n         * imgsrc : http://192.168.0.200:81/sixin/20180809/1533785213929pKHPF5.jpg\r\n         * thumsrc : http://192.168.0.200:81/sixin/20180809/thumb_1533785213929pKHPF5.jpg\r\n         */\r\n        @Id\r\n        private long id;\r\n        private String content;\r\n        private String type;\r\n        private String imgsrc;\r\n        private String thumsrc;\r\n\r\n        public String getType() {\r\n            return type;\r\n        }\r\n\r\n        public void setType(String type) {\r\n            this.type = type;\r\n        }\r\n\r\n        public String getImgsrc() {\r\n            return imgsrc;\r\n        }\r\n\r\n        public void setImgsrc(String imgsrc) {\r\n            this.imgsrc = imgsrc;\r\n        }\r\n\r\n        public String getThumsrc() {\r\n            return thumsrc;\r\n        }\r\n\r\n        public void setThumsrc(String thumsrc) {\r\n            this.thumsrc = thumsrc;\r\n        }\r\n\r\n        public String getContent() {\r\n            return content;\r\n        }\r\n\r\n        public void setContent(String content) {\r\n            this.content = content;\r\n        }\r\n    }\r\n\r\n\r\n}\r\n\r\n### Logs & stackstraces\r\n*Check if you have relevant logs and/or a stacktrace.\r\nFor __build issues__, use `--stacktrace` for the Gradle build (`./gradlew build --stacktrace`).\r\nFor __runtime errors__, check Android's Logcat (check also for relevant logs preceeding the issue itself).*\r\n\r\n## Entities\r\n*Provide the code for entities related to the bug (shorten to relevant parts).*\r\n\r\n## Misc\r\n*Is there anything special about your app?\r\nMay transactions or multi-threading play a role?\r\nDid you find any workarounds to prevent the issue?*\r\n"}}
{"actor":{"display_login":"lvzesong"}}