Skip to content

Instantly share code, notes, and snippets.

@jhiemer
Created August 29, 2012 05:12
Show Gist options
  • Save jhiemer/3507042 to your computer and use it in GitHub Desktop.
Save jhiemer/3507042 to your computer and use it in GitHub Desktop.
Hibernate: select sla0_."Id" as Id1_23_0_, sla0_."Description" as Descript2_23_0_, sla0_."Name" as Name3_23_0_, sla0_."Enabled" as Enabled4_23_0_, sla0_."Price" as Price5_23_0_, sla0_."Provider_id" as Provider6_23_0_, sla0_."SLALevel_id" as SLALevel7_23_0_ from "Sla" sla0_ where sla0_."Id"=?
MediaType incomingMediaType = request.getHeaders().getContentType();
Object incoming;
if(null == (incoming = readIncoming(request, incomingMediaType, domainType))) {
throw new HttpMessageNotReadableException("Could not create an instance of "
+ domainType.getSimpleName() + " from input.");
}
// Set the ID specified in the URL
repoMeta.entityMetadata().idAttribute().set(serId, incoming);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment