Revision 3eae124b
Von Christian Ehringfeld vor etwa 10 Jahren hinzugefügt
| .travis.yml | ||
|---|---|---|
|
|
||
|
install:
|
||
|
- lsb_release -a
|
||
|
- if [ "${TRAVIS_OS_NAME}" = "linux" ]; then
|
||
|
sudo apt-add-repository -y ppa:ubuntu-toolchain-r/test
|
||
|
# - if [ "${TRAVIS_OS_NAME}" = "linux" ]; then
|
||
|
sudo apt-add-repository -y ppa:ubuntu-toolchain-r/test
|
||
|
&& sudo apt-add-repository -y ppa:beineri/opt-qt541
|
||
|
&& sudo apt-get -qq update
|
||
|
&& sudo apt-get -qq install g++-4.8 libc6-i386 qt54tools qt54svg qt54webkit qt54script
|
||
|
&& export CXX="g++-4.8"
|
||
|
&& export CC="gcc-4.8"
|
||
|
&& sudo apt-get -qq install g++-4.9 libc6-i386 qt54base qt54tools qt54svg qt54webkit qt54script
|
||
|
&& export CXX="g++-4.9"
|
||
|
&& export CC="gcc-4.9"
|
||
|
;
|
||
|
else
|
||
|
brew update
|
||
|
&& brew install qt5
|
||
|
&& brew install qt5-qmake
|
||
|
&& chmod -R 755 /usr/local/opt/qt5/*
|
||
|
;
|
||
|
fi
|
||
|
# else
|
||
|
# brew update
|
||
|
#&& brew install qt5
|
||
|
#&& brew install qt5-qmake
|
||
|
#&& chmod -R 755 /usr/local/opt/qt5/*
|
||
|
#;
|
||
|
#fi
|
||
|
|
||
|
script:
|
||
|
- /opt/qt54/bin/qt54-env.sh
|
||
|
- echo "#define BUILD ""$TRAVIS_BUILD_NUMBER" > build_number.h
|
||
|
# - echo "#define BUILD ""$TRAVIS_BUILD_NUMBER" > build_number.h
|
||
|
- /opt/qt54/bin/qmake EntityManager.pro -r "CONFIG+=release"
|
||
|
- make
|
||
|
- make check
|
||
| appveyor.yml | ||
|---|---|---|
|
install:
|
||
|
- set QTDIR=C:\Qt\5.4\mingw491_32
|
||
|
- set PATH=%PATH%;%QTDIR%\bin;C:\MinGW\bin
|
||
|
- set RELEASE_PATH=appveyor\release
|
||
|
# - set RELEASE_PATH=appveyor\release
|
||
|
|
||
|
build_script:
|
||
|
# using a header file without MemoryBarrier, that causes the build to fail
|
||
|
- qmake EntityManager.pro -r -spec win32-g++
|
||
|
- qmake EntityManager.pro "CONFIG+=release"
|
||
|
# - qmake QOwnNotes.pro -r -spec win32-g++ "CONFIG+=debug"
|
||
|
- mingw32-make
|
||
|
- mingw32-make -j8
|
||
|
# creating the release path
|
||
|
- md ..\%RELEASE_PATH%
|
||
|
# - md ..\%RELEASE_PATH%
|
||
|
# copy the binary to our release path
|
||
|
#- copy release\CuteEntityManager.dll ..\%RELEASE_PATH%
|
||
|
#- cd ..\%RELEASE_PATH%
|
||
| src/relation.h | ||
|---|---|---|
|
ONE_TO_MANY = 1, //@OneToMany(cascade=ALL, mappedBy="customer") e.g. QList<QSharedPointer<Person>>
|
||
|
MANY_TO_ONE = 2, //e.g. QSharedPointer<Person>
|
||
|
//1-n Entity foreign key in same table
|
||
|
MANY_TO_MANY = 3, //e.g. QList<QSharedPointer<Person>> - realized with seperated database table
|
||
|
MANY_TO_MANY = 3 //e.g. QList<QSharedPointer<Person>> - realized with seperated database table
|
||
|
};
|
||
|
|
||
|
enum class InheritanceStrategy {
|
||
|
PER_CLASS_TABLE,
|
||
|
JOINED_TABLE,
|
||
|
JOINED_TABLE
|
||
|
};
|
||
|
|
||
|
enum class CascadeType {
|
||
| ... | ... | |
|
MERGE,
|
||
|
PERSIST,
|
||
|
REFRESH,
|
||
|
REMOVE,
|
||
|
REMOVE
|
||
|
};
|
||
|
|
||
|
class Relation {
|
||
Auch abrufbar als: Unified diff
ci