title: How to add file with additional properties into Liferay's Document Library
body: <p>I'm trying to figure this out, I was asking this question in <a href="http://www.liferay.com/community/forums/-/message_boards/message/4084711#_19_message_7720252" rel="nofollow">Liferay's forum here</a> - the last entry.</p>
  
  <p>And only thing I'm able to come up with is creating an <a href="http://www.liferay.com/web/jonas.yuan/blog/-/blogs/adding-custom-attributes-capabilities-on-custom-assets-in-liferay-6-through-plugins" rel="nofollow">Expando</a> for FileEntry, which seems very complicated. Who knows if it makes sense. I don't like the expando feature since I couldn't query them via hibernate properly.  </p>
  
  <p>Does anybody know the answer for my question in that Liferay forum ?</p>
  
  <p>The problem is that, </p>
  
  <pre><code>DLAppLocalServiceUtil.addFileEntry(...);
  DLLocalServiceUtil.addFile(....);
  </code></pre>
  
  <p>doesn't let you store any additional information / properties about the file. As a result, one would have to use JackRabbit directly, instead of using Liferay's JCRHook. But you loose all the advantages that Document Library brings.</p>