Generate Rest Api From Database Java