Tutorial by Examples: o

This is an example of how you would do a one to many mapping using XML. We will use Author and Book as our example and assume an author may have written many books, but each book will only have one author. Author class: public class Author { private int id; private String firstName; ...
To comment or uncomment code select the lines and use Ctrl + Shift + C or Ctrl + Shift + /
To access the Open Resource dialog use Ctrl + Shift + R. From here you can start typing a resource name and it will find all matches in the workspace, this makes it easier to find a file when you don't know exactly were it is.
If you want System.out.println(); but don't want to type the whole thing out you can just type syso and hit Ctrl + Spacebar. It will type the rest and set the cursor between the parenthesis.
hql = "From EntityName";
hql = "Select id, name From Employee";
hql = "From Author a, Book b Where a.id = book.author";
You can include HTML comments in JSPs as well. You use the basic html comment syntax: <!--Comment goes here--> The difference between using JSP style comments and HTML style comments is the JSP ones will not be included when the HTML is generated and the HTML style comments will be. So it ...
QtCreator is, at the moment, the best tool to create a Qt application. In this example, we will see how to create a simple Qt application which manage a button and write text. To create a new application click on File->New File or Project: Then choose the Projects->Application->Qt Widge...
As this is an audio, we don't need a QVideoWidget. So we can do: _player = new QMediaPlayer(this); QUrl file = QUrl::fromLocalFile(QFileDialog::getOpenFileName(this, tr("Open Music"), "", tr(""))); if (file.url() == "") return ; _player->setMedia(f...
$> perl -MFoo::Bar\ 9999 $> Foo::Bar version 9999 required--this is only version 1.1.
For I as Integer = 1 To 10 Step 1 code to execute Next Step is optional and Step 1 is the default. Step tells it how to count, so -1 would have it subtract 1 each time and Step 5 would have it add 5 each time thru the loop. In case the loop need to be stopped, then the Exit For statement c...
With the help of West Wind's wwDotNetBridge, you can easily have access .NET code within a VFP program. The white paper has all the details, but this concise example will help illustrate the basic steps to running a method in a .NET assembly. Note that wwDotNetBridge can directly access simple pro...
Datapump jobs can be monitored using 1. data dictionary views: select * from dba_datapump_jobs; SELECT * FROM DBA_DATAPUMP_SESSIONS; select username,opname,target_desc,sofar,totalwork,message from V$SESSION_LONGOPS where username = 'bkpadmin'; 2. Datapump status: Note down the j...
create or replace directory DATAPUMP_REMOTE_DIR as '/oracle/scripts/expimp';
Commands: expdp <bkpadmin>/<bkp123> parfile=<exp.par> *Please replace the data in <> with appropriate values as per your environment. You can add/modify parameters as per your requirements. In the above example all the remaining parameters are added in parameter files as...
Prerequisite: Prior to user import it is a good practice to drop the schema or table imported. Commands: impdp <bkpadmin>/<bkp123> parfile=<imp.par> *Please replace the data in <> with appropriate values as per your environment. You can add/modify parameters as per...
If you have modifications to share or just want to try new version in development. $ hg clone https://bitbucket.org/scons/scons $ python scons/src/script/scons.py
In this example you will be modifying the Marital Status drop-down list found on the Contacts form (CR302000): To add new items to the PXStringListAttribute successor The best way to extend drop-down items hard-coded inside an attribute inherited from the PXStringList or PXIntList attribute is b...
expdp <bkpadmin>/<bkp123> directory=DATAPUMP_REMOTE_DIR dumpfile=<customer.dmp> impdp <bkpadmin>/<bkp123> directory=DATAPUMP_REMOTE_DIR dumpfile=<customer.dmp> remap_schema=<source schema>:<target schema> remap_tablespace=<source tablespace&g...

Page 916 of 1038