Heat olive oil in a dutch oven. Add onions and garlic and cook until translucent. Add Italian sausage and ground beef and brown. Drain off fat.
Add tomatoes, tomato juice, salt, pepper, Italian seasoning, and red pepper flakes. Cook for 25 to 30 minutes.
Preheat oven to 375 degrees.
In a separate bowl, mix together the ricotta cheese, 2 cups of the grated mozzarella, Parmesan, egg, and salt and pepper.
Drain the pasta. Pour it into the bowl with the cheese mixture and toss to slightly . Add the meat sauce and toss together.
Pour mixture into a greased casserole dish. Sprinkle with shredded cheese.
Bake for 20 minutes. Remove from oven and let stand 5 minutes before serving.