The Entity Provider generates the Attachments of the Announcements only with the fields name and url. The DecoratedAttachment class can include also attachid,attachref and type, but that that is not passed to the constructor.
To test it:
- Access as a Teacher
- Create an announcement with an attachment
- Access the entitybroker to get the JSON for the user announcements http://yourinsance.com/direct/announcement/user.json