Created
August 29, 2012 05:12
-
-
Save jhiemer/3507042 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"=? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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