How to create a DIV with a scroll bar?
<div style="width: 200px; height: 100px; overflow-y: scroll;">
How to create a DIV with a scroll bar?
<div style="width: 200px; height: 100px; overflow-y: scroll;">
query = entityManager.createQuery("select o from MyTestObject o where o.income = :income and o.age = :age"); query.setParameter("income", 50507.0); query.setParameter("age", 12); List<MyTestObject> obs = query.getResultList();Query with referenced object filter (@ManyToOne)
query = entityManager.createQuery("select o from MyTestObject o where o.anotherObject = :anotherObject"); query.setParameter("anotherObject", anotherObject); List<MyTestObject> obs = query.getResultList();Which is equivalent to:
query = entityManager.createQuery("select o from MyTestObject o where o.anotherObject.id = :anotherObjectId"); query.setParameter("anotherObjectId", anotherObject.getId()); List<MyTestObject> obs = query.getResultList();Can also query down object graph (1 level only right now):
query = entityManager.createQuery("select o from MyTestObject o where o.someOtherObject.name = :name"); query.setParameter("name", "finnigan"); List<MyTestObject> obs = query.getResultList();But keep in mind, querying down the graph can be slow because it will query for the id's down the graph, then apply them to the top level query.
query = em.createQuery("select o from MyTestObject3 o where o.someField3 like :x"); query.setParameter("x", "fred and%"); List<MyTestObject3> obs = query.getResultList();This will return all MyTestObject3's that start with "fred and".
query = entityManager.createQuery("select o from MyTestObject o where o.income = :income and o.age = :age order by o.age"); query.setParameter("income", 50507.0); query.setParameter("age", 12); List<MyTestObject> obs = query.getResultList();
query = entityManager.createQuery("select count(o) from MyTestObject o where o.income = :income and o.age = :age order by o.age"); query.setParameter("income", 50507.0); query.setParameter("age", 12); List obs = query.getResultList(); long count = obs.get(0);
// the one liner Query qb = new QueryBuilderImpl() .append("select o from IndexStats o where o.numKeywords < :x", "x", 10).makeQuery(em); List<IndexStats> resultList = qb.getResultList();
private List<Book> getBooks(BookFilter filter) { QueryBuilder qb = new QueryBuilderImpl(); qb.append("select o from Book o where 1 = 1"); if (filter.getTitle() != null) { qb.append(" and o.title = :title", "title", filter.getTitle()); } Query q = qb.makeQuery(em()); return q.getResultList(); }
Here is how to mark deleted text: blue and inserted text: red!
Form with a dropdown box.
$ mvn archetype:generate
Then choose org.codehaus.mojo.archetypes:webapp-jee5
then choose version1.3.
<project name="deploy" default="deploy"> <property file="deploy.properties" /> <!-- Setting TaskDefinition --> <taskdef name="wldeploy" classname="weblogic.ant.taskdefs.management.WLDeploy"> <classpath> <pathelement location="${wldeploy.home}/weblogic.jar"/> </classpath> </taskdef> <!-- Deploying Applications --> <target name="deploy"> <wldeploy action="deploy" name="${deploy.name}" source="${deploy.source.path}/${deploy.source.ear}" verbose="true" adminurl="${connection.protocol}://${wls.hostname}:${wls.port}" targets="${deploy.target}" upload="true" user="${wls.username}" password="${wls.password}" usenonexclusivelock="true" /> </target> </project>
taskkill /im myprocess.exe /f
The "/f" is for "force".
If you know the PID, then you can specify that, as in:taskkill /pid 1234 /f
Lots of other options are possible, just type taskkill /? for all of
them. The "/t" option kills a process and any child processes; that may
be useful to you.
Windows
|
Choose Start > Programs
> Oracle WebLogic > Uninstall Oracle WebLogic.
The Oracle Uninstaller Welcome
screen is displayed.
|