Officer Michael Hamill resigned from GPD on Dec. 6. before he was to interview with the agency's Internal Affairs department, which was investigating anti-Semitic social media posts and sexual relations.

The Gainesville Police Department officer accused of making anti-Semitic posts on Facebook in previous years resigned this month.

Officer Michael Hamill was under investigation by the agency’s Internal Affairs department in two separate cases. One involved anti-Semitic statements made on his personal Facebook. The agency was also investigating whether Hamill had sexual relations while on duty, GPD spokesman Ben Tobias said in a statement.

“Both allegations would have been sustained with a possible recommendation of up to termination,” Tobias said.

Hamill resigned from the agency Dec. 6, when he was to appear for an Internal Affairs interview. He had been sworn in as a GPD officer in October 2016.

Through Tobias, Hamill declined a request for comment.

Hamill had gained attention after a selfie, which included two other GPD officers, was posted to GPD’s Facebook page to highlight officers helping the community during and after Hurricane Irma.

The selfie, which has since been removed from the agency’s Facebook page, received 181,000 comments, 517,000 likes and 276,000 shares. One comment called the three officers “hunkapotumuses,” and they became known as the “hot cops.”

Hamill was suspended with pay Sept. 15 as an investigation began.

According to an Internal Affairs report, GPD received complaints from two citizens in September about anti-Semitic posts on Hamill’s personal Facebook page that were made before Hamill was hired.

In an April 2011 post, Hamill wrote: “so I find it funny that people will talk about how our government needs to do something about our economy and in reality it’s YOU who needs to stop taking advantage of our system and get a life and do something with your life. Gotta love reality when it hits you in the face. Stupid people annoy me. Put them in an oven and deal with them the Hitler way. Haha.”

In an April 2013 post, Hamill wrote: “Who knew that reading jewish jokes before I go to bed would not only make me feel better about myself but also help me to sleep better as well. Here is one for everybody, 'What's the difference between boy scouts and jews?' Anybody know? Well it is because 'Boy scouts come back from their camps.'"

Tobias said Thursday that GPD is working with the Florida Holocaust Museum in St. Petersburg and all new recruits will tour the museum before being sworn in.

In one Internal Affairs report, investigators determined that “the offensive nature of these posts directly affect Officer Hamill’s ability to interact with citizens of the community and reflect poorly on the Gainesville Police Department.”

The internal affairs department had received an internal complaint in October stemming from a sexual battery criminal investigation against Hamill, which ultimately determined no charges would be filed against Hamill.

An internal Affairs report shows that investigators found four dates between February and April 2017 when Hamill visited a woman while on duty. Evidence showed that Hamill had sexual relations with the woman while on duty.

The woman told investigators she and Hamill first met while he was driving her home as an Uber driver, which was a violation of GPD’s general order about outside employment.