Hey all,

I am attempting to learn webapp development. The tools I am using are intellij, maven, mongodb, and tomcat. I have a general structure down, but I guess I don't know how to begin tying together all the different layers (domain, BLL, Service, whatever names you call them).

I am trying to make a document repository. The webapp I design should take a file, a few strings and upload it to the mongodb. I just can't figure out how to tie everything together / where to begin.

This is what I have so far:

[CODE]
package com.tindev.docrepo.domain;

import java.util.Date;

/**
* Created with IntelliJ IDEA.
* User: Jeff
* Date: 11/22/13
* Time: 9:33 AM
* To change this template use File | Settings | File Templates.
*/
public class DocRepoFile {
private String index;
private String fileName;
private String author;
private byte[] content;
private Date createdDate;

public String getIndex() {
return index;
}

public void setIndex(String index) {
this.index = index;
}

public String getFileName() {
return fileName;
}

public void setFileName(String fileName) {
this.fileName = fileName;
}

public String getAuthor() {
return author;
}

public void setAuthor(String author) {
this.author = author;
}

public byte[] getContent() {
return content;
}

public void setContent(byte[] content) {
this.content = content;
}

public Date getCreatedDate() {
return createdDate;
}

public void setCreatedDate(Date createdDate) {
this.createdDate = createdDate;
}
}
[CODE]

and for the DAO:

[CODE]

package com.tindev.docrepo.DAO;

import com.tindev.docrepo.domain.DocRepoFile;

/**
* Created with IntelliJ IDEA.
* User: Jeff
* Date: 11/22/13
* Time: 9:34 AM
* To change this template use File | Settings | File Templates.
*/
public class DocRepoFileDAO {

public void insert(DocRepoFile docRepoFile){


}
}
[CODE]