jpa-criteria


how to add non persistent class to specifications


I want non persistent class as specifications,
eg:
*public static Specification<Non-persistent_class(POJO) allattributes(...)
{
return new Specification<Non_Persistent_class(POJO)>()
{
#Override
{
public Predicate toPredicate(Root<PersistentClass(entity class)>
root,CriteriaQuery<Non-persistent_class(POJO)> cq,CriteriaBuilder cb)
{
.....*
Problem with this query is the implemented method shows wrong ,it says implemented method should look like
*#Override
{
public Predicate toPredicate(Root<Non-persistent_class(POJO)>
root,CriteriaQuery<?> cq,CriteriaBuilder cb)
{
.....*
But I want the root as Persistent class and criteria query as non persistent class so that i can use multiselect method (from criteria query)to select different fields from persistent classes(from root) and then send it as non persistent class to specification interface.

Related Links

how to add non persistent class to specifications

Categories

HOME
cocoapods
opengl
flask
artificial-intelligence
ontouchlistener
seedstack
twitter-fabric
moodle-api
implicit-conversion
kurento
reportviewer
fireloop
locationmanager
google-cloud-logging
vertica
nullreferenceexception
workday
backendless
multi-dimensional-scaling
offline-caching
echosign
miniprofiler
laravel-4.2
windows2012
counting
nest
subclassing
landscape
cargo
mv
strapi
telephonymanager
django-smart-selects
sbjson
git-tfs
doctrine-extensions
autorelease
scala-breeze
photoswipe
redisson
node-apn
network-protocols
sesame
predicates
xcode8-beta4
openseadragon
bbc-micro
mercurial-extension
vim-plugin
flask-security
wepay
pack
json-spirit
deeplink
decidable
astropy
sqlbase
subview
findersync
fiware-bosun
juttle
utf8-decode
iplimage
thruway
bittorrent-sync
tabletools
jomsocial
usb-flash-drive
mod-perl
assetic
indesign-server
jacob
chartfx
sly-scroller
axacropdf
wndproc
popup-blocker
viewpagerindicator
kaazing
java.lang.class
trialware
netstream
multidrop-bus
infopath-2007
play2-mini
data-dump
ninject-interception
cassini
ccnet-config
yahoo-maps
ntruencrypt
prism-2

Resources

Encrypt Message