France international Hernandez is to tell the court on Tuesday where he will serve the sentence that was handed down on Wednesday.
The 25-year-old had violated the order while playing at Atletico Madrid and has 10 days to start the prison term.
The restraining orders were originally imposed on him and his girlfriend after a violent argument in 2017.