This document presents a framework for generating Java code from formal models. It discusses managing concurrency with Petri nets, modeling transactional systems with Concurrent Object-Oriented Petri Nets (CO-OPN), and the CO-OPN code generation framework. The tutorial aims to demonstrate the advantages of model-based development using formal models like Petri nets, including precise semantics, platform independence, and automatic model checking, testing and code generation.