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
[root@localhost crised]# kquitapp plasma-desktop; rm ~/.kde/share/config/plasma-desktop-appletsrc ; plasma-desktop | |
kquitapp(5207): "Application plasma-desktop could not be found using service org.kde.plasma-desktop and path /MainApplication." | |
rm: cannot remove `/root/.kde/share/config/plasma-desktop-appletsrc': No such file or directory | |
plasma-desktop(5210): KUniqueApplication: Cannot find the D-Bus session server: "Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken." | |
plasma-desktop(5209): KUniqueApplication: Pipe closed unexpectedly. |
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
public List<Ad> getAll() { | |
CriteriaBuilder cb = em.getCriteriaBuilder(); | |
CriteriaQuery<Ad> cq = cb.createQuery(Ad.class); | |
Root<Ad> adRoot = cq.from(Ad.class); | |
cq.select(adRoot); | |
cq.where(cb.isNull(adRoot.get(Ad_.removed))); | |
cq.where(cb.isNull(adRoot.get(Ad_.pictureList.//How to access a property?))); | |
return em.createQuery(cq).getResultList(); | |
} |
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
package web.Filters; | |
import javax.servlet.*; | |
import javax.servlet.annotation.WebFilter; | |
import javax.servlet.http.HttpServletRequest; | |
import javax.servlet.http.HttpServletResponse; | |
import java.io.IOException; | |
/** | |
* Date: 2/4/13 |
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
public List<Ad> getAll() { | |
CriteriaBuilder cb = em.getCriteriaBuilder(); | |
CriteriaQuery<Ad> cq = cb.createQuery(Ad.class); | |
Root<Ad> adRoot = cq.from(Ad.class); | |
Join<Ad,Picture> pictureJoin = adRoot.join( Ad_.pictureList ); | |
cq.select(adRoot); | |
cq.where(cb.isNull(adRoot.get(Ad_.removed))); | |
cq.where(cb.isNull(pictureJoin.get(Picture_.removed))); | |
return em.createQuery(cq).getResultList(); |
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
public List<Ad> getAll() { | |
CriteriaBuilder cb = em.getCriteriaBuilder(); | |
CriteriaQuery<Ad> cq = cb.createQuery(Ad.class); | |
Root<Ad> adRoot = cq.from(Ad.class); | |
//Join<Ad,Picture> pictureJoin = adRoot.join( Ad_.pictureList ); | |
cq.select(adRoot); | |
cq.where(cb.isNull(adRoot.get(Ad_.removed))); | |
// cq.where(cb.isNull(pictureJoin.get(Picture_.removed))); | |
return em.createQuery(cq).getResultList(); |
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
public List<Ad> getAll() { | |
CriteriaBuilder cb = em.getCriteriaBuilder(); | |
CriteriaQuery<Ad> cq = cb.createQuery(Ad.class); | |
Root<Ad> adRoot = cq.from(Ad.class); | |
//Join<Ad,Picture> pictureJoin = adRoot.join( Ad_.pictureList ); | |
cq.select(adRoot); | |
cq.where(cb.isNull(adRoot.get(Ad_.removed))); | |
// cq.where(cb.isNull(pictureJoin.get(Picture_.removed))); | |
return em.createQuery(cq).getResultList(); |
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
<ui:composition template="/layout/template.xhtml" xmlns="http://www.w3.org/1999/xhtml" | |
xmlns:h="http://java.sun.com/jsf/html" xmlns:ui="http://java.sun.com/jsf/facelets" | |
xmlns:f="http://java.sun.com/jsf/core" xmlns:p="http://primefaces.org/ui"> | |
<f:metadata> | |
<f:viewParam name="userId" value="#{userAd.userId}"/> | |
<f:event type="preRenderView" listener="#{userAd.preRender()}"/> | |
</f:metadata> | |
<ui:define name="title"> |
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
public List<Ad> getAll() { | |
CriteriaBuilder cb = em.getCriteriaBuilder(); | |
CriteriaQuery<Ad> cq = cb.createQuery(Ad.class); | |
Root<Ad> adRoot = cq.from(Ad.class); | |
Join<Ad, Picture> pictureJoin = | |
adRoot.join(Ad_.pictureList, JoinType.LEFT); //All Ads, even if no match in picture | |
cq.select(adRoot); | |
cq.where(cb.isNull(adRoot.get(Ad_.removed))); // This restriction is not working as it should |
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
public List<Ad> getAll() { | |
CriteriaBuilder cb = em.getCriteriaBuilder(); | |
CriteriaQuery<Ad> cq = cb.createQuery(Ad.class); | |
Root<Ad> adRoot = cq.from(Ad.class); | |
Join<Ad, Picture> pictureJoin = | |
adRoot.join(Ad_.pictureList, JoinType.LEFT); //All Ads, even if no match in picture | |
cq.select(adRoot); | |
Predicate predicate1 = cb.isNull(adRoot.get(Ad_.removed)); | |
Predicate predicate2 = cb.isNull(pictureJoin.get(Picture_.removed)); |
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
public List<Ad> getAll() { | |
CriteriaBuilder cb = em.getCriteriaBuilder(); | |
CriteriaQuery<Ad> cq = cb.createQuery(Ad.class); | |
Root<Ad> adRoot = cq.from(Ad.class); | |
Join<Ad, Picture> pictureJoin = | |
adRoot.join(Ad_.pictureList, JoinType.LEFT); //All Ads, even if no match in picture | |
cq.select(adRoot); | |
Predicate predicate1 = cb.isNull(adRoot.get(Ad_.removed)); | |
Predicate predicate2 = cb.isNull(pictureJoin.get(Picture_.removed)); |