jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Zhihai Liu" <z...@cleverex.com>
Subject OCM mapping to nt:file
Date Thu, 03 Apr 2008 21:54:56 GMT

I am trying to get an example of OCM mapping with nt:file. How the
annotation or XML will be to map a Java class like below to nt:file?

public class File
  Private String path;	
  private String mimeType;
  private String encoding;
  private InputStream data;
  private Calendar lastModified;
  // Add getters/setters

In addition, how to ensure that "data" (InputStream) is mapped to
jcr:content as nt:resource? I think that's required to get it indexed and
become searchable. 

Thanks in advance.

View raw message