<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Le Blog SQL Server d&#039;ElSüket &#187; SQL Server Management Studio</title>
	<atom:link href="https://blog.developpez.com/elsuket/pcategory/sql-server-management-studio/feed" rel="self" type="application/rss+xml" />
	<link>https://blog.developpez.com/elsuket</link>
	<description>Nicolas Souquet - Expert SQL Server</description>
	<lastBuildDate>Mon, 05 Apr 2021 07:32:41 +0000</lastBuildDate>
	<language>fr-FR</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.1.42</generator>
	<item>
		<title>Télécharger SQL Server Management Studio 2017 (v17.2)</title>
		<link>https://blog.developpez.com/elsuket/p13152/sql-server-management-studio/telecharger-sql-server-management-studio-2017-v17-2</link>
		<comments>https://blog.developpez.com/elsuket/p13152/sql-server-management-studio/telecharger-sql-server-management-studio-2017-v17-2#comments</comments>
		<pubDate>Sun, 17 Sep 2017 16:50:58 +0000</pubDate>
		<dc:creator><![CDATA[elsuket]]></dc:creator>
				<category><![CDATA[SQL Server Management Studio]]></category>

		<guid isPermaLink="false">http://blog.developpez.com/elsuket/?p=1463</guid>
		<description><![CDATA[Voici la dernière version de SQL Server Management Studio : https://docs.microsoft.com/en-us/sql/ssms/download-sql-server-management-studio-ssms Je donne le lien car il arrive qu&#8217;on obtienne la version 17.0 RC par exemple, alors que la version la plus actuelle est la 17.2. Cela évite d&#8217;avoir à &#8230; <a href="https://blog.developpez.com/elsuket/p13152/sql-server-management-studio/telecharger-sql-server-management-studio-2017-v17-2">Lire la suite <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>Voici la dernière version de SQL Server Management Studio :</p>
<p>https://docs.microsoft.com/en-us/sql/ssms/download-sql-server-management-studio-ssms</p>
<p>Je donne le lien car il arrive qu&rsquo;on obtienne la version 17.0 RC par exemple, alors que la version la plus actuelle est la 17.2. Cela évite d&rsquo;avoir à télécharger 350 Mo en plus de 680 de la 17.0 <img src="https://blog.developpez.com/elsuket/wp-includes/images/smilies/icon_biggrin.gif" alt=":D" class="wp-smiley" /></p>
]]></content:encoded>
			<wfw:commentRss></wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installer SQL Server Management Studio 2016</title>
		<link>https://blog.developpez.com/elsuket/p13118/utilitaires/installer-sql-server-management-studio-2016</link>
		<comments>https://blog.developpez.com/elsuket/p13118/utilitaires/installer-sql-server-management-studio-2016#comments</comments>
		<pubDate>Mon, 14 Nov 2016 14:28:49 +0000</pubDate>
		<dc:creator><![CDATA[elsuket]]></dc:creator>
				<category><![CDATA[SQL Server Management Studio]]></category>
		<category><![CDATA[Utilitaires]]></category>

		<guid isPermaLink="false">http://blog.developpez.com/elsuket/?p=1347</guid>
		<description><![CDATA[SSMS 2016 n&#8217;est maintenant plus inclus dans le package d&#8217;installation de SQL Server. Ceci permet à Microsoft d&#8217;effectuer des corrections sur ce logiciel à un rythme plus rapide que jusqu&#8217;à SQL Server 2014. Ceci se confirme lorsqu&#8217;on regarde la liste &#8230; <a href="https://blog.developpez.com/elsuket/p13118/utilitaires/installer-sql-server-management-studio-2016">Lire la suite <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>SSMS 2016 n&rsquo;est maintenant plus inclus dans le package d&rsquo;installation de SQL Server.<br />
Ceci permet à Microsoft d&rsquo;effectuer des corrections sur ce logiciel à un rythme plus rapide que jusqu&rsquo;à SQL Server 2014.<br />
Ceci se confirme lorsqu&rsquo;on regarde la <a href="https://msdn.microsoft.com/fr-fr/library/mt588477.aspx">liste des corrections</a> : un bon lot de tickets Connect sont adressés.</p>
<p>Pour installer SQL Server Management Studio 2016 v16.5, c&rsquo;est par <a href="https://msdn.microsoft.com/fr-fr/library/mt238290.aspx">ici</a>.<br />
Pour obtenir l&rsquo;installation dans une autre langue, voyez la section <em>Langues disponibles</em>.</p>
<p>ElSüket</p>
]]></content:encoded>
			<wfw:commentRss></wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SQL Server Management Studio 2016 v16.3 vient de sortir !</title>
		<link>https://blog.developpez.com/elsuket/p13094/sql-server-management-studio/sql-server-management-studio-2016-v16-3-vient-de-sortir</link>
		<comments>https://blog.developpez.com/elsuket/p13094/sql-server-management-studio/sql-server-management-studio-2016-v16-3-vient-de-sortir#comments</comments>
		<pubDate>Wed, 17 Aug 2016 08:00:52 +0000</pubDate>
		<dc:creator><![CDATA[elsuket]]></dc:creator>
				<category><![CDATA[SQL Server Management Studio]]></category>
		<category><![CDATA[SQL Server 2016]]></category>

		<guid isPermaLink="false">http://blog.developpez.com/elsuket/?p=1336</guid>
		<description><![CDATA[Avec la sortie de SQL Server 2016, Microsoft avait annoncé découpler l&#8217;installation de SQL Server Management Studio (SSMS) de celle de SQL Server. Ceci sert deux buts : On n&#8217;est plus tenté d&#8217;installer SSMS en même temps que SQL Server &#8230; <a href="https://blog.developpez.com/elsuket/p13094/sql-server-management-studio/sql-server-management-studio-2016-v16-3-vient-de-sortir">Lire la suite <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>Avec la sortie de SQL Server 2016, Microsoft avait annoncé découpler l&rsquo;installation de SQL Server Management Studio (SSMS) de celle de SQL Server. Ceci sert deux buts :</p>
<ul>
<li>On n&rsquo;est plus tenté d&rsquo;installer SSMS en même temps que SQL Server sur une machine : ceci fait donc moins d&rsquo;ouvertures aux potentielles failles de sécurité et élimine de possibles instabilités de la machine. Cela oblige les acteurs de l&rsquo;entreprise à se connecter une l&rsquo;instance SQL Server directement depuis leur station de travail, ou mieux depuis une machine &laquo;&nbsp;de rebond&nbsp;&raquo; qui peut être monitorée très strictement en ce qui concerne la sécurité d&rsquo;accès et l&rsquo;audit des actions de l&rsquo;utilisateur (par exemple enregistrement vidéo de la session bureau à distance)</li>
<p><span id="more-1336"></span></p>
<li>Les corrections et améliorations que SSMS mérite se feront plus fréquemment que le cycle de versionnement de SQL Server, qui est tous les deux ans depuis quelques opus.</li>
</ul>
<p>Voici donc le lien de téléchargement : en <a href="https://msdn.microsoft.com/fr-fr/library/mt238290.aspx">Français</a> et en <a href="https://msdn.microsoft.com/en-us/library/mt238290.aspx">Anglais</a></p>
<p>Bon upgrade SSMS !</p>
]]></content:encoded>
			<wfw:commentRss></wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Comment voir le contenu complet d&#8217;une colonne de type [n]varchar(max)</title>
		<link>https://blog.developpez.com/elsuket/p13087/moteur-de-base-de-donnees-sql-server/indexation/comment-voir-le-contenu-complet-dune-colonne-de-type-nvarcharmax</link>
		<comments>https://blog.developpez.com/elsuket/p13087/moteur-de-base-de-donnees-sql-server/indexation/comment-voir-le-contenu-complet-dune-colonne-de-type-nvarcharmax#comments</comments>
		<pubDate>Wed, 03 Aug 2016 08:00:33 +0000</pubDate>
		<dc:creator><![CDATA[elsuket]]></dc:creator>
				<category><![CDATA[Indexation]]></category>
		<category><![CDATA[SQL Server Management Studio]]></category>
		<category><![CDATA[contenu]]></category>
		<category><![CDATA[intégral]]></category>
		<category><![CDATA[SLQ Server Management Studio]]></category>
		<category><![CDATA[SMSS]]></category>
		<category><![CDATA[texte]]></category>
		<category><![CDATA[xml]]></category>

		<guid isPermaLink="false">http://blog.developpez.com/elsuket/?p=1287</guid>
		<description><![CDATA[S&#8217;apercevoir, alors que l&#8217;on vient de coller une valeur d&#8217;une colonne du résultat d&#8217;une requête dans SQL Server Management Studio, que le buffer est limité, est quelque peu frustrant. On peut parfois dépasser cette limite en se rendant dans le &#8230; <a href="https://blog.developpez.com/elsuket/p13087/moteur-de-base-de-donnees-sql-server/indexation/comment-voir-le-contenu-complet-dune-colonne-de-type-nvarcharmax">Lire la suite <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>S&rsquo;apercevoir, alors que l&rsquo;on vient de coller une valeur d&rsquo;une colonne du résultat d&rsquo;une requête dans SQL Server Management Studio, que le buffer est limité, est quelque peu frustrant.<br />
On peut parfois dépasser cette limite en se rendant dans le menu Tools &gt; Options &gt; Query Results &gt; SLQ Server &gt; Results to Grid :</p>
<p><img src="http://i.imgur.com/E7x5Ysi.png" alt="" /></p>
<p>Mais souvent, cela ne suffit pas. Voyons comment contourner ce petit problème :</p>
<p><span id="more-1287"></span></p>
<p>Pour les besoins de la démonstration, créons une petite table, avec une pile d&rsquo;exécution. C&rsquo;est ce que l&rsquo;on trouve parfois dans les bases de données lorsque celles-ci sont dédiées à une seule application et écrit les erreurs rencontrées directement dans une table :</p>
<div class="codecolorer-container tsql vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;height:300px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br />23<br />24<br />25<br />26<br />27<br />28<br />29<br />30<br />31<br />32<br />33<br />34<br />35<br />36<br />37<br />38<br />39<br />40<br />41<br />42<br />43<br />44<br />45<br />46<br />47<br />48<br />49<br />50<br />51<br />52<br />53<br />54<br />55<br />56<br />57<br />58<br />59<br />60<br />61<br />62<br />63<br />64<br />65<br />66<br />67<br />68<br />69<br />70<br />71<br />72<br />73<br />74<br />75<br />76<br />77<br />78<br />79<br />80<br />81<br />82<br />83<br />84<br />85<br />86<br />87<br />88<br />89<br />90<br />91<br />92<br />93<br />94<br />95<br />96<br />97<br />98<br />99<br />100<br />101<br />102<br />103<br />104<br />105<br />106<br />107<br />108<br />109<br />110<br />111<br />112<br />113<br />114<br />115<br />116<br />117<br />118<br />119<br />120<br />121<br />122<br />123<br />124<br />125<br />126<br />127<br />128<br />129<br />130<br />131<br />132<br />133<br />134<br />135<br />136<br />137<br />138<br />139<br />140<br />141<br />142<br />143<br />144<br />145<br />146<br />147<br />148<br />149<br />150<br />151<br />152<br />153<br />154<br />155<br />156<br />157<br />158<br />159<br />160<br />161<br />162<br />163<br />164<br />165<br />166<br />167<br />168<br />169<br />170<br />171<br />172<br />173<br />174<br />175<br />176<br />177<br />178<br />179<br />180<br />181<br />182<br />183<br />184<br />185<br />186<br />187<br />188<br />189<br />190<br />191<br />192<br />193<br />194<br />195<br />196<br />197<br />198<br />199<br />200<br />201<br />202<br />203<br />204<br />205<br />206<br />207<br />208<br />209<br />210<br />211<br />212<br />213<br />214<br />215<br />216<br />217<br />218<br />219<br />220<br />221<br />222<br />223<br />224<br />225<br />226<br />227<br />228<br />229<br />230<br />231<br />232<br />233<br />234<br />235<br />236<br />237<br />238<br />239<br />240<br />241<br />242<br />243<br />244<br />245<br />246<br />247<br />248<br />249<br />250<br />251<br />252<br />253<br />254<br />255<br />256<br />257<br />258<br />259<br />260<br />261<br />262<br />263<br />264<br />265<br />266<br />267<br />268<br />269<br />270<br />271<br />272<br />273<br />274<br />275<br />276<br />277<br />278<br />279<br />280<br />281<br />282<br />283<br />284<br />285<br />286<br />287<br />288<br />289<br />290<br />291<br />292<br />293<br />294<br />295<br />296<br />297<br />298<br />299<br />300<br />301<br />302<br />303<br />304<br />305<br />306<br />307<br />308<br />309<br />310<br />311<br />312<br />313<br />314<br />315<br />316<br />317<br />318<br />319<br />320<br />321<br />322<br />323<br />324<br />325<br />326<br />327<br />328<br />329<br />330<br />331<br />332<br />333<br />334<br />335<br />336<br />337<br />338<br />339<br />340<br />341<br />342<br />343<br />344<br />345<br />346<br />347<br />348<br />349<br />350<br />351<br />352<br />353<br />354<br />355<br />356<br />357<br />358<br />359<br />360<br />361<br />362<br />363<br />364<br />365<br />366<br />367<br />368<br />369<br />370<br />371<br />372<br />373<br />374<br />375<br />376<br />377<br />378<br />379<br />380<br />381<br />382<br />383<br />384<br />385<br />386<br />387<br />388<br />389<br />390<br />391<br />392<br />393<br />394<br />395<br />396<br />397<br />398<br />399<br />400<br />401<br />402<br />403<br />404<br />405<br />406<br />407<br />408<br />409<br />410<br />411<br />412<br />413<br />414<br />415<br />416<br />417<br />418<br />419<br />420<br />421<br />422<br />423<br />424<br />425<br />426<br />427<br />428<br />429<br />430<br />431<br />432<br />433<br />434<br />435<br />436<br />437<br />438<br />439<br />440<br />441<br />442<br />443<br />444<br />445<br />446<br />447<br />448<br />449<br />450<br />451<br />452<br />453<br />454<br />455<br />456<br />457<br />458<br />459<br />460<br />461<br />462<br />463<br />464<br />465<br />466<br />467<br />468<br />469<br />470<br />471<br />472<br />473<br />474<br />475<br />476<br />477<br />478<br />479<br />480<br />481<br />482<br />483<br />484<br />485<br />486<br />487<br />488<br />489<br />490<br />491<br />492<br />493<br />494<br />495<br />496<br />497<br />498<br />499<br />500<br />501<br />502<br />503<br />504<br />505<br />506<br />507<br />508<br />509<br />510<br />511<br />512<br />513<br />514<br />515<br />516<br />517<br />518<br />519<br />520<br />521<br /></div></td><td><div class="tsql codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #0000FF;">CREATE</span> <span style="color: #0000FF;">TABLE</span> dbo.<span style="color: #202020;">application_log</span><br />
<span style="color: #808080;">&#40;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; log_label <span style="color: #0000FF;">varchar</span><span style="color: #808080;">&#40;</span><span style="color: #FF00FF;">max</span><span style="color: #808080;">&#41;</span><br />
<span style="color: #808080;">&#41;</span><br />
GO<br />
<br />
<span style="color: #0000FF;">INSERT</span> <span style="color: #0000FF;">INTO</span> dbo.<span style="color: #202020;">application_log</span><br />
<span style="color: #0000FF;">VALUES</span> <span style="color: #808080;">&#40;</span><span style="color: #FF0000;">'[ERROR] org.springframework.boot.context.embedded.tomcat.TomcatStarter - Error starting Tomcat context: org.springframework.beans.factory.BeanCreationException<br />
[WARN] org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext - Exception encountered during context initialization - cancelling refresh attempt<br />
org.springframework.context.ApplicationContextException: Unable to start embedded container; nested exception is org.springframework.boot.context.embedded.EmbeddedServletContainerException: Unable to start embedded Tomcat<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.onRefresh(EmbeddedWebApplicationContext.java:133) [spring-boot-1.2.4.RELEASE.jar:1.2.4.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:474) ~[spring-context-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:118) [spring-boot-1.2.4.RELEASE.jar:1.2.4.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:686) [spring-boot-1.2.4.RELEASE.jar:1.2.4.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.boot.SpringApplication.run(SpringApplication.java:320) [spring-boot-1.2.4.RELEASE.jar:1.2.4.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at de.sveri.mct.Application.main(Application.java:72) [main/:na]<br />
Caused by: org.springframework.boot.context.embedded.EmbeddedServletContainerException: Unable to start embedded Tomcat<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainer.initialize(TomcatEmbeddedServletContainer.java:98) ~[spring-boot-1.2.4.RELEASE.jar:1.2.4.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainer.(TomcatEmbeddedServletContainer.java:75) ~[spring-boot-1.2.4.RELEASE.jar:1.2.4.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainerFactory.getTomcatEmbeddedServletContainer(TomcatEmbeddedServletContainerFactory.java:378) ~[spring-boot-1.2.4.RELEASE.jar:1.2.4.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainerFactory.getEmbeddedServletContainer(TomcatEmbeddedServletContainerFactory.java:155) ~[spring-boot-1.2.4.RELEASE.jar:1.2.4.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.createEmbeddedServletContainer(EmbeddedWebApplicationContext.java:157) [spring-boot-1.2.4.RELEASE.jar:1.2.4.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.onRefresh(EmbeddedWebApplicationContext.java:130) [spring-boot-1.2.4.RELEASE.jar:1.2.4.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; ... 5 common frames omitted<br />
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name '</span><span style="color: #FF0000;">'org.springframework.security.config.annotation.web.configuration.WebSecurityConfiguration'</span><span style="color: #FF0000;">': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire method: public void org.springframework.security.config.annotation.web.configuration.WebSecurityConfiguration.setFilterChainProxySecurityConfigurer(org.springframework.security.config.annotation.ObjectPostProcessor,java.util.List) throws java.lang.Exception; nested exception is org.springframework.beans.factory.BeanExpressionException: Expression parsing failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '</span><span style="color: #FF0000;">'securityConfiguration'</span><span style="color: #FF0000;">': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.springframework.security.core.userdetails.UserDetailsService de.sveri.mct.config.SecurityConfiguration.userDetailsService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '</span><span style="color: #FF0000;">'userDetailsService'</span><span style="color: #FF0000;">': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private de.sveri.mct.repository.UserRepository de.sveri.mct.security.UserDetailsService.userRepository; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '</span><span style="color: #FF0000;">'userRepository'</span><span style="color: #FF0000;">': Cannot create inner bean '</span><span style="color: #FF0000;">'(inner bean)#58e814e6'</span><span style="color: #FF0000;">' of type [org.springframework.orm.jpa.SharedEntityManagerCreator] while setting bean property '</span><span style="color: #FF0000;">'entityManager'</span><span style="color: #FF0000;">'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '</span><span style="color: #FF0000;">'(inner bean)#58e814e6'</span><span style="color: #FF0000;">': Cannot resolve reference to bean '</span><span style="color: #FF0000;">'entityManagerFactory'</span><span style="color: #FF0000;">' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '</span><span style="color: #FF0000;">'entityManagerFactory'</span><span style="color: #FF0000;">' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaAutoConfiguration.class]: Invocation of init method failed; nested exception is javax.persistence.PersistenceException: [PersistenceUnit: default] Unable to build Hibernate SessionFactory<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:334) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1210) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:368) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1119) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1014) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:504) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.boot.context.embedded.ServletContextInitializerBeans.getOrderedBeansOfType(ServletContextInitializerBeans.java:209) ~[spring-boot-1.2.4.RELEASE.jar:1.2.4.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.boot.context.embedded.ServletContextInitializerBeans.addAsRegistrationBean(ServletContextInitializerBeans.java:165) ~[spring-boot-1.2.4.RELEASE.jar:1.2.4.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.boot.context.embedded.ServletContextInitializerBeans.addAsRegistrationBean(ServletContextInitializerBeans.java:160) ~[spring-boot-1.2.4.RELEASE.jar:1.2.4.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.boot.context.embedded.ServletContextInitializerBeans.addAdaptableBeans(ServletContextInitializerBeans.java:143) ~[spring-boot-1.2.4.RELEASE.jar:1.2.4.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.boot.context.embedded.ServletContextInitializerBeans.(ServletContextInitializerBeans.java:74) ~[spring-boot-1.2.4.RELEASE.jar:1.2.4.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.getServletContextInitializerBeans(EmbeddedWebApplicationContext.java:234) [spring-boot-1.2.4.RELEASE.jar:1.2.4.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.selfInitialize(EmbeddedWebApplicationContext.java:221) [spring-boot-1.2.4.RELEASE.jar:1.2.4.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.access$000(EmbeddedWebApplicationContext.java:84) [spring-boot-1.2.4.RELEASE.jar:1.2.4.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext$1.onStartup(EmbeddedWebApplicationContext.java:206) ~[spring-boot-1.2.4.RELEASE.jar:1.2.4.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.boot.context.embedded.tomcat.TomcatStarter.onStartup(TomcatStarter.java:54) ~[spring-boot-1.2.4.RELEASE.jar:1.2.4.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5156) ~[tomcat-embed-core-8.0.23.jar:8.0.23]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) ~[tomcat-embed-core-8.0.23.jar:8.0.23]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1409) ~[tomcat-embed-core-8.0.23.jar:8.0.23]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1399) ~[tomcat-embed-core-8.0.23.jar:8.0.23]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[na:1.8.0_25]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) ~[na:1.8.0_25]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) ~[na:1.8.0_25]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at java.lang.Thread.run(Thread.java:745) ~[na:1.8.0_25]<br />
Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire method: public void org.springframework.security.config.annotation.web.configuration.WebSecurityConfiguration.setFilterChainProxySecurityConfigurer(org.springframework.security.config.annotation.ObjectPostProcessor,java.util.List) throws java.lang.Exception; nested exception is org.springframework.beans.factory.BeanExpressionException: Expression parsing failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '</span><span style="color: #FF0000;">'securityConfiguration'</span><span style="color: #FF0000;">': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.springframework.security.core.userdetails.UserDetailsService de.sveri.mct.config.SecurityConfiguration.userDetailsService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '</span><span style="color: #FF0000;">'userDetailsService'</span><span style="color: #FF0000;">': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private de.sveri.mct.repository.UserRepository de.sveri.mct.security.UserDetailsService.userRepository; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '</span><span style="color: #FF0000;">'userRepository'</span><span style="color: #FF0000;">': Cannot create inner bean '</span><span style="color: #FF0000;">'(inner bean)#58e814e6'</span><span style="color: #FF0000;">' of type [org.springframework.orm.jpa.SharedEntityManagerCreator] while setting bean property '</span><span style="color: #FF0000;">'entityManager'</span><span style="color: #FF0000;">'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '</span><span style="color: #FF0000;">'(inner bean)#58e814e6'</span><span style="color: #FF0000;">': Cannot resolve reference to bean '</span><span style="color: #FF0000;">'entityManagerFactory'</span><span style="color: #FF0000;">' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '</span><span style="color: #FF0000;">'entityManagerFactory'</span><span style="color: #FF0000;">' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaAutoConfiguration.class]: Invocation of init method failed; nested exception is javax.persistence.PersistenceException: [PersistenceUnit: default] Unable to build Hibernate SessionFactory<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredMethodElement.inject(AutowiredAnnotationBeanPostProcessor.java:649) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:331) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; ... 34 common frames omitted<br />
Caused by: org.springframework.beans.factory.BeanExpressionException: Expression parsing failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '</span><span style="color: #FF0000;">'securityConfiguration'</span><span style="color: #FF0000;">': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.springframework.security.core.userdetails.UserDetailsService de.sveri.mct.config.SecurityConfiguration.userDetailsService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '</span><span style="color: #FF0000;">'userDetailsService'</span><span style="color: #FF0000;">': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private de.sveri.mct.repository.UserRepository de.sveri.mct.security.UserDetailsService.userRepository; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '</span><span style="color: #FF0000;">'userRepository'</span><span style="color: #FF0000;">': Cannot create inner bean '</span><span style="color: #FF0000;">'(inner bean)#58e814e6'</span><span style="color: #FF0000;">' of type [org.springframework.orm.jpa.SharedEntityManagerCreator] while setting bean property '</span><span style="color: #FF0000;">'entityManager'</span><span style="color: #FF0000;">'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '</span><span style="color: #FF0000;">'(inner bean)#58e814e6'</span><span style="color: #FF0000;">': Cannot resolve reference to bean '</span><span style="color: #FF0000;">'entityManagerFactory'</span><span style="color: #FF0000;">' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '</span><span style="color: #FF0000;">'entityManagerFactory'</span><span style="color: #FF0000;">' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaAutoConfiguration.class]: Invocation of init method failed; nested exception is javax.persistence.PersistenceException: [PersistenceUnit: default] Unable to build Hibernate SessionFactory<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.context.expression.StandardBeanExpressionResolver.evaluate(StandardBeanExpressionResolver.java:164) ~[spring-context-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractBeanFactory.evaluateBeanDefinitionString(AbstractBeanFactory.java:1365) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:957) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:942) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredMethodElement.inject(AutowiredAnnotationBeanPostProcessor.java:606) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; ... 36 common frames omitted<br />
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name '</span><span style="color: #FF0000;">'securityConfiguration'</span><span style="color: #FF0000;">': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.springframework.security.core.userdetails.UserDetailsService de.sveri.mct.config.SecurityConfiguration.userDetailsService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '</span><span style="color: #FF0000;">'userDetailsService'</span><span style="color: #FF0000;">': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private de.sveri.mct.repository.UserRepository de.sveri.mct.security.UserDetailsService.userRepository; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '</span><span style="color: #FF0000;">'userRepository'</span><span style="color: #FF0000;">': Cannot create inner bean '</span><span style="color: #FF0000;">'(inner bean)#58e814e6'</span><span style="color: #FF0000;">' of type [org.springframework.orm.jpa.SharedEntityManagerCreator] while setting bean property '</span><span style="color: #FF0000;">'entityManager'</span><span style="color: #FF0000;">'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '</span><span style="color: #FF0000;">'(inner bean)#58e814e6'</span><span style="color: #FF0000;">': Cannot resolve reference to bean '</span><span style="color: #FF0000;">'entityManagerFactory'</span><span style="color: #FF0000;">' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '</span><span style="color: #FF0000;">'entityManagerFactory'</span><span style="color: #FF0000;">' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaAutoConfiguration.class]: Invocation of init method failed; nested exception is javax.persistence.PersistenceException: [PersistenceUnit: default] Unable to build Hibernate SessionFactory<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:334) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1210) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:523) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:512) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.security.config.annotation.web.configuration.AutowiredWebSecurityConfigurersIgnoreParents.getWebSecurityConfigurers(AutowiredWebSecurityConfigurersIgnoreParents.java:52) ~[spring-security-config-4.0.1.RELEASE.jar:4.0.1.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_25]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_25]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_25]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at java.lang.reflect.Method.invoke(Method.java:483) ~[na:1.8.0_25]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.expression.spel.support.ReflectiveMethodExecutor.execute(ReflectiveMethodExecutor.java:112) ~[spring-expression-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.expression.spel.ast.MethodReference.getValueInternal(MethodReference.java:129) ~[spring-expression-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.expression.spel.ast.MethodReference.access$000(MethodReference.java:49) ~[spring-expression-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.expression.spel.ast.MethodReference$MethodValueRef.getValue(MethodReference.java:342) ~[spring-expression-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.expression.spel.ast.CompoundExpression.getValueInternal(CompoundExpression.java:88) ~[spring-expression-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.expression.spel.ast.SpelNodeImpl.getValue(SpelNodeImpl.java:120) ~[spring-expression-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.expression.spel.standard.SpelExpression.getValue(SpelExpression.java:242) ~[spring-expression-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.context.expression.StandardBeanExpressionResolver.evaluate(StandardBeanExpressionResolver.java:161) ~[spring-context-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; ... 40 common frames omitted<br />
Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.springframework.security.core.userdetails.UserDetailsService de.sveri.mct.config.SecurityConfiguration.userDetailsService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '</span><span style="color: #FF0000;">'userDetailsService'</span><span style="color: #FF0000;">': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private de.sveri.mct.repository.UserRepository de.sveri.mct.security.UserDetailsService.userRepository; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '</span><span style="color: #FF0000;">'userRepository'</span><span style="color: #FF0000;">': Cannot create inner bean '</span><span style="color: #FF0000;">'(inner bean)#58e814e6'</span><span style="color: #FF0000;">' of type [org.springframework.orm.jpa.SharedEntityManagerCreator] while setting bean property '</span><span style="color: #FF0000;">'entityManager'</span><span style="color: #FF0000;">'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '</span><span style="color: #FF0000;">'(inner bean)#58e814e6'</span><span style="color: #FF0000;">': Cannot resolve reference to bean '</span><span style="color: #FF0000;">'entityManagerFactory'</span><span style="color: #FF0000;">' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '</span><span style="color: #FF0000;">'entityManagerFactory'</span><span style="color: #FF0000;">' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaAutoConfiguration.class]: Invocation of init method failed; nested exception is javax.persistence.PersistenceException: [PersistenceUnit: default] Unable to build Hibernate SessionFactory<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:561) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:331) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; ... 62 common frames omitted<br />
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name '</span><span style="color: #FF0000;">'userDetailsService'</span><span style="color: #FF0000;">': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private de.sveri.mct.repository.UserRepository de.sveri.mct.security.UserDetailsService.userRepository; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '</span><span style="color: #FF0000;">'userRepository'</span><span style="color: #FF0000;">': Cannot create inner bean '</span><span style="color: #FF0000;">'(inner bean)#58e814e6'</span><span style="color: #FF0000;">' of type [org.springframework.orm.jpa.SharedEntityManagerCreator] while setting bean property '</span><span style="color: #FF0000;">'entityManager'</span><span style="color: #FF0000;">'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '</span><span style="color: #FF0000;">'(inner bean)#58e814e6'</span><span style="color: #FF0000;">': Cannot resolve reference to bean '</span><span style="color: #FF0000;">'entityManagerFactory'</span><span style="color: #FF0000;">' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '</span><span style="color: #FF0000;">'entityManagerFactory'</span><span style="color: #FF0000;">' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaAutoConfiguration.class]: Invocation of init method failed; nested exception is javax.persistence.PersistenceException: [PersistenceUnit: default] Unable to build Hibernate SessionFactory<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:334) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1210) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1120) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1044) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:942) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:533) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; ... 64 common frames omitted<br />
Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: private de.sveri.mct.repository.UserRepository de.sveri.mct.security.UserDetailsService.userRepository; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '</span><span style="color: #FF0000;">'userRepository'</span><span style="color: #FF0000;">': Cannot create inner bean '</span><span style="color: #FF0000;">'(inner bean)#58e814e6'</span><span style="color: #FF0000;">' of type [org.springframework.orm.jpa.SharedEntityManagerCreator] while setting bean property '</span><span style="color: #FF0000;">'entityManager'</span><span style="color: #FF0000;">'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '</span><span style="color: #FF0000;">'(inner bean)#58e814e6'</span><span style="color: #FF0000;">': Cannot resolve reference to bean '</span><span style="color: #FF0000;">'entityManagerFactory'</span><span style="color: #FF0000;">' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '</span><span style="color: #FF0000;">'entityManagerFactory'</span><span style="color: #FF0000;">' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaAutoConfiguration.class]: Invocation of init method failed; nested exception is javax.persistence.PersistenceException: [PersistenceUnit: default] Unable to build Hibernate SessionFactory<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:561) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:331) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; ... 75 common frames omitted<br />
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name '</span><span style="color: #FF0000;">'userRepository'</span><span style="color: #FF0000;">': Cannot create inner bean '</span><span style="color: #FF0000;">'(inner bean)#58e814e6'</span><span style="color: #FF0000;">' of type [org.springframework.orm.jpa.SharedEntityManagerCreator] while setting bean property '</span><span style="color: #FF0000;">'entityManager'</span><span style="color: #FF0000;">'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '</span><span style="color: #FF0000;">'(inner bean)#58e814e6'</span><span style="color: #FF0000;">': Cannot resolve reference to bean '</span><span style="color: #FF0000;">'entityManagerFactory'</span><span style="color: #FF0000;">' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '</span><span style="color: #FF0000;">'entityManagerFactory'</span><span style="color: #FF0000;">' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaAutoConfiguration.class]: Invocation of init method failed; nested exception is javax.persistence.PersistenceException: [PersistenceUnit: default] Unable to build Hibernate SessionFactory<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:313) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:129) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1477) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1222) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1120) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1044) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:942) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:533) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; ... 77 common frames omitted<br />
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name '</span><span style="color: #FF0000;">'(inner bean)#58e814e6'</span><span style="color: #FF0000;">': Cannot resolve reference to bean '</span><span style="color: #FF0000;">'entityManagerFactory'</span><span style="color: #FF0000;">' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '</span><span style="color: #FF0000;">'entityManagerFactory'</span><span style="color: #FF0000;">' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaAutoConfiguration.class]: Invocation of init method failed; nested exception is javax.persistence.PersistenceException: [PersistenceUnit: default] Unable to build Hibernate SessionFactory<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:359) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:108) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:634) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:444) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1119) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1014) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:504) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:299) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; ... 90 common frames omitted<br />
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name '</span><span style="color: #FF0000;">'entityManagerFactory'</span><span style="color: #FF0000;">' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaAutoConfiguration.class]: Invocation of init method failed; nested exception is javax.persistence.PersistenceException: [PersistenceUnit: default] Unable to build Hibernate SessionFactory<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1574) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:351) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; ... 98 common frames omitted<br />
Caused by: javax.persistence.PersistenceException: [PersistenceUnit: default] Unable to build Hibernate SessionFactory<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.persistenceException(EntityManagerFactoryBuilderImpl.java:1249) ~[hibernate-entitymanager-4.3.10.Final.jar:4.3.10.Final]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.access$600(EntityManagerFactoryBuilderImpl.java:120) ~[hibernate-entitymanager-4.3.10.Final.jar:4.3.10.Final]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl$4.perform(EntityManagerFactoryBuilderImpl.java:860) ~[hibernate-entitymanager-4.3.10.Final.jar:4.3.10.Final]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl$4.perform(EntityManagerFactoryBuilderImpl.java:850) ~[hibernate-entitymanager-4.3.10.Final.jar:4.3.10.Final]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.hibernate.boot.registry.classloading.internal.ClassLoaderServiceImpl.withTccl(ClassLoaderServiceImpl.java:425) ~[hibernate-core-4.3.10.Final.jar:4.3.10.Final]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:849) ~[hibernate-entitymanager-4.3.10.Final.jar:4.3.10.Final]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.orm.jpa.vendor.SpringHibernateJpaPersistenceProvider.createContainerEntityManagerFactory(SpringHibernateJpaPersistenceProvider.java:60) ~[spring-orm-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:343) ~[spring-orm-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:318) ~[spring-orm-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1633) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1570) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; ... 105 common frames omitted<br />
Caused by: org.hibernate.AnnotationException: Unknown mappedBy in: de.sveri.mct.domain.Topic.topic, referenced property unknown: de.sveri.mct.domain.Topic.topic<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.hibernate.cfg.OneToOneSecondPass.doSecondPass(OneToOneSecondPass.java:160) ~[hibernate-core-4.3.10.Final.jar:4.3.10.Final]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.hibernate.cfg.Configuration.originalSecondPassCompile(Configuration.java:1697) ~[hibernate-core-4.3.10.Final.jar:4.3.10.Final]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.hibernate.cfg.Configuration.secondPassCompile(Configuration.java:1426) ~[hibernate-core-4.3.10.Final.jar:4.3.10.Final]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1846) ~[hibernate-core-4.3.10.Final.jar:4.3.10.Final]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl$4.perform(EntityManagerFactoryBuilderImpl.java:857) ~[hibernate-entitymanager-4.3.10.Final.jar:4.3.10.Final]<br />
&nbsp; &nbsp; &nbsp; &nbsp; ... 113 common frames omitted<br />
[ERROR] org.springframework.boot.SpringApplication - Application startup failed<br />
org.springframework.context.ApplicationContextException: Unable to start embedded container; nested exception is org.springframework.boot.context.embedded.EmbeddedServletContainerException: Unable to start embedded Tomcat<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.onRefresh(EmbeddedWebApplicationContext.java:133) ~[spring-boot-1.2.4.RELEASE.jar:1.2.4.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:474) ~[spring-context-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:118) ~[spring-boot-1.2.4.RELEASE.jar:1.2.4.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:686) ~[spring-boot-1.2.4.RELEASE.jar:1.2.4.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.boot.SpringApplication.run(SpringApplication.java:320) ~[spring-boot-1.2.4.RELEASE.jar:1.2.4.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at de.sveri.mct.Application.main(Application.java:72) [main/:na]<br />
Caused by: org.springframework.boot.context.embedded.EmbeddedServletContainerException: Unable to start embedded Tomcat<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainer.initialize(TomcatEmbeddedServletContainer.java:98) ~[spring-boot-1.2.4.RELEASE.jar:1.2.4.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainer.(TomcatEmbeddedServletContainer.java:75) ~[spring-boot-1.2.4.RELEASE.jar:1.2.4.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainerFactory.getTomcatEmbeddedServletContainer(TomcatEmbeddedServletContainerFactory.java:378) ~[spring-boot-1.2.4.RELEASE.jar:1.2.4.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainerFactory.getEmbeddedServletContainer(TomcatEmbeddedServletContainerFactory.java:155) ~[spring-boot-1.2.4.RELEASE.jar:1.2.4.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.createEmbeddedServletContainer(EmbeddedWebApplicationContext.java:157) ~[spring-boot-1.2.4.RELEASE.jar:1.2.4.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.onRefresh(EmbeddedWebApplicationContext.java:130) ~[spring-boot-1.2.4.RELEASE.jar:1.2.4.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; ... 5 common frames omitted<br />
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name '</span><span style="color: #FF0000;">'org.springframework.security.config.annotation.web.configuration.WebSecurityConfiguration'</span><span style="color: #FF0000;">': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire method: public void org.springframework.security.config.annotation.web.configuration.WebSecurityConfiguration.setFilterChainProxySecurityConfigurer(org.springframework.security.config.annotation.ObjectPostProcessor,java.util.List) throws java.lang.Exception; nested exception is org.springframework.beans.factory.BeanExpressionException: Expression parsing failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '</span><span style="color: #FF0000;">'securityConfiguration'</span><span style="color: #FF0000;">': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.springframework.security.core.userdetails.UserDetailsService de.sveri.mct.config.SecurityConfiguration.userDetailsService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '</span><span style="color: #FF0000;">'userDetailsService'</span><span style="color: #FF0000;">': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private de.sveri.mct.repository.UserRepository de.sveri.mct.security.UserDetailsService.userRepository; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '</span><span style="color: #FF0000;">'userRepository'</span><span style="color: #FF0000;">': Cannot create inner bean '</span><span style="color: #FF0000;">'(inner bean)#58e814e6'</span><span style="color: #FF0000;">' of type [org.springframework.orm.jpa.SharedEntityManagerCreator] while setting bean property '</span><span style="color: #FF0000;">'entityManager'</span><span style="color: #FF0000;">'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '</span><span style="color: #FF0000;">'(inner bean)#58e814e6'</span><span style="color: #FF0000;">': Cannot resolve reference to bean '</span><span style="color: #FF0000;">'entityManagerFactory'</span><span style="color: #FF0000;">' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '</span><span style="color: #FF0000;">'entityManagerFactory'</span><span style="color: #FF0000;">' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaAutoConfiguration.class]: Invocation of init method failed; nested exception is javax.persistence.PersistenceException: [PersistenceUnit: default] Unable to build Hibernate SessionFactory<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:334) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1210) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:368) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1119) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1014) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:504) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.boot.context.embedded.ServletContextInitializerBeans.getOrderedBeansOfType(ServletContextInitializerBeans.java:209) ~[spring-boot-1.2.4.RELEASE.jar:1.2.4.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.boot.context.embedded.ServletContextInitializerBeans.addAsRegistrationBean(ServletContextInitializerBeans.java:165) ~[spring-boot-1.2.4.RELEASE.jar:1.2.4.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.boot.context.embedded.ServletContextInitializerBeans.addAsRegistrationBean(ServletContextInitializerBeans.java:160) ~[spring-boot-1.2.4.RELEASE.jar:1.2.4.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.boot.context.embedded.ServletContextInitializerBeans.addAdaptableBeans(ServletContextInitializerBeans.java:143) ~[spring-boot-1.2.4.RELEASE.jar:1.2.4.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.boot.context.embedded.ServletContextInitializerBeans.(ServletContextInitializerBeans.java:74) ~[spring-boot-1.2.4.RELEASE.jar:1.2.4.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.getServletContextInitializerBeans(EmbeddedWebApplicationContext.java:234) ~[spring-boot-1.2.4.RELEASE.jar:1.2.4.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.selfInitialize(EmbeddedWebApplicationContext.java:221) ~[spring-boot-1.2.4.RELEASE.jar:1.2.4.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.access$000(EmbeddedWebApplicationContext.java:84) ~[spring-boot-1.2.4.RELEASE.jar:1.2.4.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext$1.onStartup(EmbeddedWebApplicationContext.java:206) ~[spring-boot-1.2.4.RELEASE.jar:1.2.4.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.boot.context.embedded.tomcat.TomcatStarter.onStartup(TomcatStarter.java:54) ~[spring-boot-1.2.4.RELEASE.jar:1.2.4.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5156) ~[tomcat-embed-core-8.0.23.jar:8.0.23]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) ~[tomcat-embed-core-8.0.23.jar:8.0.23]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1409) ~[tomcat-embed-core-8.0.23.jar:8.0.23]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1399) ~[tomcat-embed-core-8.0.23.jar:8.0.23]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[na:1.8.0_25]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) ~[na:1.8.0_25]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) ~[na:1.8.0_25]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at java.lang.Thread.run(Thread.java:745) ~[na:1.8.0_25]<br />
Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire method: public void org.springframework.security.config.annotation.web.configuration.WebSecurityConfiguration.setFilterChainProxySecurityConfigurer(org.springframework.security.config.annotation.ObjectPostProcessor,java.util.List) throws java.lang.Exception; nested exception is org.springframework.beans.factory.BeanExpressionException: Expression parsing failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '</span><span style="color: #FF0000;">'securityConfiguration'</span><span style="color: #FF0000;">': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.springframework.security.core.userdetails.UserDetailsService de.sveri.mct.config.SecurityConfiguration.userDetailsService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '</span><span style="color: #FF0000;">'userDetailsService'</span><span style="color: #FF0000;">': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private de.sveri.mct.repository.UserRepository de.sveri.mct.security.UserDetailsService.userRepository; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '</span><span style="color: #FF0000;">'userRepository'</span><span style="color: #FF0000;">': Cannot create inner bean '</span><span style="color: #FF0000;">'(inner bean)#58e814e6'</span><span style="color: #FF0000;">' of type [org.springframework.orm.jpa.SharedEntityManagerCreator] while setting bean property '</span><span style="color: #FF0000;">'entityManager'</span><span style="color: #FF0000;">'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '</span><span style="color: #FF0000;">'(inner bean)#58e814e6'</span><span style="color: #FF0000;">': Cannot resolve reference to bean '</span><span style="color: #FF0000;">'entityManagerFactory'</span><span style="color: #FF0000;">' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '</span><span style="color: #FF0000;">'entityManagerFactory'</span><span style="color: #FF0000;">' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaAutoConfiguration.class]: Invocation of init method failed; nested exception is javax.persistence.PersistenceException: [PersistenceUnit: default] Unable to build Hibernate SessionFactory<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredMethodElement.inject(AutowiredAnnotationBeanPostProcessor.java:649) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:331) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; ... 34 common frames omitted<br />
Caused by: org.springframework.beans.factory.BeanExpressionException: Expression parsing failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '</span><span style="color: #FF0000;">'securityConfiguration'</span><span style="color: #FF0000;">': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.springframework.security.core.userdetails.UserDetailsService de.sveri.mct.config.SecurityConfiguration.userDetailsService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '</span><span style="color: #FF0000;">'userDetailsService'</span><span style="color: #FF0000;">': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private de.sveri.mct.repository.UserRepository de.sveri.mct.security.UserDetailsService.userRepository; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '</span><span style="color: #FF0000;">'userRepository'</span><span style="color: #FF0000;">': Cannot create inner bean '</span><span style="color: #FF0000;">'(inner bean)#58e814e6'</span><span style="color: #FF0000;">' of type [org.springframework.orm.jpa.SharedEntityManagerCreator] while setting bean property '</span><span style="color: #FF0000;">'entityManager'</span><span style="color: #FF0000;">'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '</span><span style="color: #FF0000;">'(inner bean)#58e814e6'</span><span style="color: #FF0000;">': Cannot resolve reference to bean '</span><span style="color: #FF0000;">'entityManagerFactory'</span><span style="color: #FF0000;">' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '</span><span style="color: #FF0000;">'entityManagerFactory'</span><span style="color: #FF0000;">' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaAutoConfiguration.class]: Invocation of init method failed; nested exception is javax.persistence.PersistenceException: [PersistenceUnit: default] Unable to build Hibernate SessionFactory<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.context.expression.StandardBeanExpressionResolver.evaluate(StandardBeanExpressionResolver.java:164) ~[spring-context-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractBeanFactory.evaluateBeanDefinitionString(AbstractBeanFactory.java:1365) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:957) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:942) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredMethodElement.inject(AutowiredAnnotationBeanPostProcessor.java:606) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; ... 36 common frames omitted<br />
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name '</span><span style="color: #FF0000;">'securityConfiguration'</span><span style="color: #FF0000;">': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.springframework.security.core.userdetails.UserDetailsService de.sveri.mct.config.SecurityConfiguration.userDetailsService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '</span><span style="color: #FF0000;">'userDetailsService'</span><span style="color: #FF0000;">': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private de.sveri.mct.repository.UserRepository de.sveri.mct.security.UserDetailsService.userRepository; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '</span><span style="color: #FF0000;">'userRepository'</span><span style="color: #FF0000;">': Cannot create inner bean '</span><span style="color: #FF0000;">'(inner bean)#58e814e6'</span><span style="color: #FF0000;">' of type [org.springframework.orm.jpa.SharedEntityManagerCreator] while setting bean property '</span><span style="color: #FF0000;">'entityManager'</span><span style="color: #FF0000;">'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '</span><span style="color: #FF0000;">'(inner bean)#58e814e6'</span><span style="color: #FF0000;">': Cannot resolve reference to bean '</span><span style="color: #FF0000;">'entityManagerFactory'</span><span style="color: #FF0000;">' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '</span><span style="color: #FF0000;">'entityManagerFactory'</span><span style="color: #FF0000;">' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaAutoConfiguration.class]: Invocation of init method failed; nested exception is javax.persistence.PersistenceException: [PersistenceUnit: default] Unable to build Hibernate SessionFactory<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:334) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1210) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:523) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:512) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.security.config.annotation.web.configuration.AutowiredWebSecurityConfigurersIgnoreParents.getWebSecurityConfigurers(AutowiredWebSecurityConfigurersIgnoreParents.java:52) ~[spring-security-config-4.0.1.RELEASE.jar:4.0.1.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_25]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_25]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_25]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at java.lang.reflect.Method.invoke(Method.java:483) ~[na:1.8.0_25]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.expression.spel.support.ReflectiveMethodExecutor.execute(ReflectiveMethodExecutor.java:112) ~[spring-expression-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.expression.spel.ast.MethodReference.getValueInternal(MethodReference.java:129) ~[spring-expression-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.expression.spel.ast.MethodReference.access$000(MethodReference.java:49) ~[spring-expression-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.expression.spel.ast.MethodReference$MethodValueRef.getValue(MethodReference.java:342) ~[spring-expression-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.expression.spel.ast.CompoundExpression.getValueInternal(CompoundExpression.java:88) ~[spring-expression-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.expression.spel.ast.SpelNodeImpl.getValue(SpelNodeImpl.java:120) ~[spring-expression-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.expression.spel.standard.SpelExpression.getValue(SpelExpression.java:242) ~[spring-expression-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.context.expression.StandardBeanExpressionResolver.evaluate(StandardBeanExpressionResolver.java:161) ~[spring-context-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; ... 40 common frames omitted<br />
Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.springframework.security.core.userdetails.UserDetailsService de.sveri.mct.config.SecurityConfiguration.userDetailsService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '</span><span style="color: #FF0000;">'userDetailsService'</span><span style="color: #FF0000;">': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private de.sveri.mct.repository.UserRepository de.sveri.mct.security.UserDetailsService.userRepository; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '</span><span style="color: #FF0000;">'userRepository'</span><span style="color: #FF0000;">': Cannot create inner bean '</span><span style="color: #FF0000;">'(inner bean)#58e814e6'</span><span style="color: #FF0000;">' of type [org.springframework.orm.jpa.SharedEntityManagerCreator] while setting bean property '</span><span style="color: #FF0000;">'entityManager'</span><span style="color: #FF0000;">'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '</span><span style="color: #FF0000;">'(inner bean)#58e814e6'</span><span style="color: #FF0000;">': Cannot resolve reference to bean '</span><span style="color: #FF0000;">'entityManagerFactory'</span><span style="color: #FF0000;">' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '</span><span style="color: #FF0000;">'entityManagerFactory'</span><span style="color: #FF0000;">' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaAutoConfiguration.class]: Invocation of init method failed; nested exception is javax.persistence.PersistenceException: [PersistenceUnit: default] Unable to build Hibernate SessionFactory<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:561) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:331) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; ... 62 common frames omitted<br />
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name '</span><span style="color: #FF0000;">'userDetailsService'</span><span style="color: #FF0000;">': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private de.sveri.mct.repository.UserRepository de.sveri.mct.security.UserDetailsService.userRepository; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '</span><span style="color: #FF0000;">'userRepository'</span><span style="color: #FF0000;">': Cannot create inner bean '</span><span style="color: #FF0000;">'(inner bean)#58e814e6'</span><span style="color: #FF0000;">' of type [org.springframework.orm.jpa.SharedEntityManagerCreator] while setting bean property '</span><span style="color: #FF0000;">'entityManager'</span><span style="color: #FF0000;">'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '</span><span style="color: #FF0000;">'(inner bean)#58e814e6'</span><span style="color: #FF0000;">': Cannot resolve reference to bean '</span><span style="color: #FF0000;">'entityManagerFactory'</span><span style="color: #FF0000;">' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '</span><span style="color: #FF0000;">'entityManagerFactory'</span><span style="color: #FF0000;">' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaAutoConfiguration.class]: Invocation of init method failed; nested exception is javax.persistence.PersistenceException: [PersistenceUnit: default] Unable to build Hibernate SessionFactory<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:334) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1210) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1120) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1044) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:942) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:533) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; ... 64 common frames omitted<br />
Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: private de.sveri.mct.repository.UserRepository de.sveri.mct.security.UserDetailsService.userRepository; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '</span><span style="color: #FF0000;">'userRepository'</span><span style="color: #FF0000;">': Cannot create inner bean '</span><span style="color: #FF0000;">'(inner bean)#58e814e6'</span><span style="color: #FF0000;">' of type [org.springframework.orm.jpa.SharedEntityManagerCreator] while setting bean property '</span><span style="color: #FF0000;">'entityManager'</span><span style="color: #FF0000;">'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '</span><span style="color: #FF0000;">'(inner bean)#58e814e6'</span><span style="color: #FF0000;">': Cannot resolve reference to bean '</span><span style="color: #FF0000;">'entityManagerFactory'</span><span style="color: #FF0000;">' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '</span><span style="color: #FF0000;">'entityManagerFactory'</span><span style="color: #FF0000;">' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaAutoConfiguration.class]: Invocation of init method failed; nested exception is javax.persistence.PersistenceException: [PersistenceUnit: default] Unable to build Hibernate SessionFactory<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:561) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:331) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; ... 75 common frames omitted<br />
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name '</span><span style="color: #FF0000;">'userRepository'</span><span style="color: #FF0000;">': Cannot create inner bean '</span><span style="color: #FF0000;">'(inner bean)#58e814e6'</span><span style="color: #FF0000;">' of type [org.springframework.orm.jpa.SharedEntityManagerCreator] while setting bean property '</span><span style="color: #FF0000;">'entityManager'</span><span style="color: #FF0000;">'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '</span><span style="color: #FF0000;">'(inner bean)#58e814e6'</span><span style="color: #FF0000;">': Cannot resolve reference to bean '</span><span style="color: #FF0000;">'entityManagerFactory'</span><span style="color: #FF0000;">' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '</span><span style="color: #FF0000;">'entityManagerFactory'</span><span style="color: #FF0000;">' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaAutoConfiguration.class]: Invocation of init method failed; nested exception is javax.persistence.PersistenceException: [PersistenceUnit: default] Unable to build Hibernate SessionFactory<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:313) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:129) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1477) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1222) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1120) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1044) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:942) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:533) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; ... 77 common frames omitted<br />
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name '</span><span style="color: #FF0000;">'(inner bean)#58e814e6'</span><span style="color: #FF0000;">': Cannot resolve reference to bean '</span><span style="color: #FF0000;">'entityManagerFactory'</span><span style="color: #FF0000;">' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '</span><span style="color: #FF0000;">'entityManagerFactory'</span><span style="color: #FF0000;">' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaAutoConfiguration.class]: Invocation of init method failed; nested exception is javax.persistence.PersistenceException: [PersistenceUnit: default] Unable to build Hibernate SessionFactory<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:359) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:108) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:634) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:444) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1119) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1014) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:504) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:299) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; ... 90 common frames omitted<br />
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name '</span><span style="color: #FF0000;">'entityManagerFactory'</span><span style="color: #FF0000;">' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaAutoConfiguration.class]: Invocation of init method failed; nested exception is javax.persistence.PersistenceException: [PersistenceUnit: default] Unable to build Hibernate SessionFactory<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1574) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:351) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; ... 98 common frames omitted<br />
Caused by: javax.persistence.PersistenceException: [PersistenceUnit: default] Unable to build Hibernate SessionFactory<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.persistenceException(EntityManagerFactoryBuilderImpl.java:1249) ~[hibernate-entitymanager-4.3.10.Final.jar:4.3.10.Final]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.access$600(EntityManagerFactoryBuilderImpl.java:120) ~[hibernate-entitymanager-4.3.10.Final.jar:4.3.10.Final]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl$4.perform(EntityManagerFactoryBuilderImpl.java:860) ~[hibernate-entitymanager-4.3.10.Final.jar:4.3.10.Final]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl$4.perform(EntityManagerFactoryBuilderImpl.java:850) ~[hibernate-entitymanager-4.3.10.Final.jar:4.3.10.Final]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.hibernate.boot.registry.classloading.internal.ClassLoaderServiceImpl.withTccl(ClassLoaderServiceImpl.java:425) ~[hibernate-core-4.3.10.Final.jar:4.3.10.Final]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:849) ~[hibernate-entitymanager-4.3.10.Final.jar:4.3.10.Final]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.orm.jpa.vendor.SpringHibernateJpaPersistenceProvider.createContainerEntityManagerFactory(SpringHibernateJpaPersistenceProvider.java:60) ~[spring-orm-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:343) ~[spring-orm-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:318) ~[spring-orm-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1633) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1570) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]<br />
&nbsp; &nbsp; &nbsp; &nbsp; ... 105 common frames omitted<br />
Caused by: org.hibernate.AnnotationException: Unknown mappedBy in: de.sveri.mct.domain.Topic.topic, referenced property unknown: de.sveri.mct.domain.Topic.topic<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.hibernate.cfg.OneToOneSecondPass.doSecondPass(OneToOneSecondPass.java:160) ~[hibernate-core-4.3.10.Final.jar:4.3.10.Final]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.hibernate.cfg.Configuration.originalSecondPassCompile(Configuration.java:1697) ~[hibernate-core-4.3.10.Final.jar:4.3.10.Final]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.hibernate.cfg.Configuration.secondPassCompile(Configuration.java:1426) ~[hibernate-core-4.3.10.Final.jar:4.3.10.Final]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1846) ~[hibernate-core-4.3.10.Final.jar:4.3.10.Final]<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl$4.perform(EntityManagerFactoryBuilderImpl.java:857) ~[hibernate-entitymanager-4.3.10.Final.jar:4.3.10.Final]<br />
&nbsp; &nbsp; &nbsp; &nbsp; ... 113 common frames omitted<br />
Exception in thread &quot;main&quot; org.springframework.context.ApplicationContextException: Unable to start embedded container; nested exception is org.springframework.boot.context.embedded.EmbeddedServletContainerException: Unable to start embedded Tomcat<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.onRefresh(EmbeddedWebApplicationContext.java:133)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:474)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:118)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:686)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.boot.SpringApplication.run(SpringApplication.java:320)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at de.sveri.mct.Application.main(Application.java:72)<br />
Caused by: org.springframework.boot.context.embedded.EmbeddedServletContainerException: Unable to start embedded Tomcat<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainer.initialize(TomcatEmbeddedServletContainer.java:98)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainer.(TomcatEmbeddedServletContainer.java:75)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainerFactory.getTomcatEmbeddedServletContainer(TomcatEmbeddedServletContainerFactory.java:378)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainerFactory.getEmbeddedServletContainer(TomcatEmbeddedServletContainerFactory.java:155)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.createEmbeddedServletContainer(EmbeddedWebApplicationContext.java:157)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.onRefresh(EmbeddedWebApplicationContext.java:130)<br />
&nbsp; &nbsp; &nbsp; &nbsp; ... 5 more<br />
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name '</span><span style="color: #FF0000;">'org.springframework.security.config.annotation.web.configuration.WebSecurityConfiguration'</span><span style="color: #FF0000;">': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire method: public void org.springframework.security.config.annotation.web.configuration.WebSecurityConfiguration.setFilterChainProxySecurityConfigurer(org.springframework.security.config.annotation.ObjectPostProcessor,java.util.List) throws java.lang.Exception; nested exception is org.springframework.beans.factory.BeanExpressionException: Expression parsing failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '</span><span style="color: #FF0000;">'securityConfiguration'</span><span style="color: #FF0000;">': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.springframework.security.core.userdetails.UserDetailsService de.sveri.mct.config.SecurityConfiguration.userDetailsService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '</span><span style="color: #FF0000;">'userDetailsService'</span><span style="color: #FF0000;">': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private de.sveri.mct.repository.UserRepository de.sveri.mct.security.UserDetailsService.userRepository; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '</span><span style="color: #FF0000;">'userRepository'</span><span style="color: #FF0000;">': Cannot create inner bean '</span><span style="color: #FF0000;">'(inner bean)#58e814e6'</span><span style="color: #FF0000;">' of type [org.springframework.orm.jpa.SharedEntityManagerCreator] while setting bean property '</span><span style="color: #FF0000;">'entityManager'</span><span style="color: #FF0000;">'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '</span><span style="color: #FF0000;">'(inner bean)#58e814e6'</span><span style="color: #FF0000;">': Cannot resolve reference to bean '</span><span style="color: #FF0000;">'entityManagerFactory'</span><span style="color: #FF0000;">' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '</span><span style="color: #FF0000;">'entityManagerFactory'</span><span style="color: #FF0000;">' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaAutoConfiguration.class]: Invocation of init method failed; nested exception is javax.persistence.PersistenceException: [PersistenceUnit: default] Unable to build Hibernate SessionFactory<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:334)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1210)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:368)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1119)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1014)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:504)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.boot.context.embedded.ServletContextInitializerBeans.getOrderedBeansOfType(ServletContextInitializerBeans.java:209)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.boot.context.embedded.ServletContextInitializerBeans.addAsRegistrationBean(ServletContextInitializerBeans.java:165)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.boot.context.embedded.ServletContextInitializerBeans.addAsRegistrationBean(ServletContextInitializerBeans.java:160)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.boot.context.embedded.ServletContextInitializerBeans.addAdaptableBeans(ServletContextInitializerBeans.java:143)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.boot.context.embedded.ServletContextInitializerBeans.(ServletContextInitializerBeans.java:74)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.getServletContextInitializerBeans(EmbeddedWebApplicationContext.java:234)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.selfInitialize(EmbeddedWebApplicationContext.java:221)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.access$000(EmbeddedWebApplicationContext.java:84)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext$1.onStartup(EmbeddedWebApplicationContext.java:206)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.boot.context.embedded.tomcat.TomcatStarter.onStartup(TomcatStarter.java:54)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5156)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1409)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1399)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at java.util.concurrent.FutureTask.run(FutureTask.java:266)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at java.lang.Thread.run(Thread.java:745)<br />
Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire method: public void org.springframework.security.config.annotation.web.configuration.WebSecurityConfiguration.setFilterChainProxySecurityConfigurer(org.springframework.security.config.annotation.ObjectPostProcessor,java.util.List) throws java.lang.Exception; nested exception is org.springframework.beans.factory.BeanExpressionException: Expression parsing failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '</span><span style="color: #FF0000;">'securityConfiguration'</span><span style="color: #FF0000;">': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.springframework.security.core.userdetails.UserDetailsService de.sveri.mct.config.SecurityConfiguration.userDetailsService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '</span><span style="color: #FF0000;">'userDetailsService'</span><span style="color: #FF0000;">': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private de.sveri.mct.repository.UserRepository de.sveri.mct.security.UserDetailsService.userRepository; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '</span><span style="color: #FF0000;">'userRepository'</span><span style="color: #FF0000;">': Cannot create inner bean '</span><span style="color: #FF0000;">'(inner bean)#58e814e6'</span><span style="color: #FF0000;">' of type [org.springframework.orm.jpa.SharedEntityManagerCreator] while setting bean property '</span><span style="color: #FF0000;">'entityManager'</span><span style="color: #FF0000;">'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '</span><span style="color: #FF0000;">'(inner bean)#58e814e6'</span><span style="color: #FF0000;">': Cannot resolve reference to bean '</span><span style="color: #FF0000;">'entityManagerFactory'</span><span style="color: #FF0000;">' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '</span><span style="color: #FF0000;">'entityManagerFactory'</span><span style="color: #FF0000;">' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaAutoConfiguration.class]: Invocation of init method failed; nested exception is javax.persistence.PersistenceException: [PersistenceUnit: default] Unable to build Hibernate SessionFactory<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredMethodElement.inject(AutowiredAnnotationBeanPostProcessor.java:649)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:331)<br />
&nbsp; &nbsp; &nbsp; &nbsp; ... 34 more<br />
Caused by: org.springframework.beans.factory.BeanExpressionException: Expression parsing failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '</span><span style="color: #FF0000;">'securityConfiguration'</span><span style="color: #FF0000;">': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.springframework.security.core.userdetails.UserDetailsService de.sveri.mct.config.SecurityConfiguration.userDetailsService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '</span><span style="color: #FF0000;">'userDetailsService'</span><span style="color: #FF0000;">': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private de.sveri.mct.repository.UserRepository de.sveri.mct.security.UserDetailsService.userRepository; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '</span><span style="color: #FF0000;">'userRepository'</span><span style="color: #FF0000;">': Cannot create inner bean '</span><span style="color: #FF0000;">'(inner bean)#58e814e6'</span><span style="color: #FF0000;">' of type [org.springframework.orm.jpa.SharedEntityManagerCreator] while setting bean property '</span><span style="color: #FF0000;">'entityManager'</span><span style="color: #FF0000;">'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '</span><span style="color: #FF0000;">'(inner bean)#58e814e6'</span><span style="color: #FF0000;">': Cannot resolve reference to bean '</span><span style="color: #FF0000;">'entityManagerFactory'</span><span style="color: #FF0000;">' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '</span><span style="color: #FF0000;">'entityManagerFactory'</span><span style="color: #FF0000;">' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaAutoConfiguration.class]: Invocation of init method failed; nested exception is javax.persistence.PersistenceException: [PersistenceUnit: default] Unable to build Hibernate SessionFactory<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.context.expression.StandardBeanExpressionResolver.evaluate(StandardBeanExpressionResolver.java:164)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractBeanFactory.evaluateBeanDefinitionString(AbstractBeanFactory.java:1365)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:957)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:942)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredMethodElement.inject(AutowiredAnnotationBeanPostProcessor.java:606)<br />
&nbsp; &nbsp; &nbsp; &nbsp; ... 36 more<br />
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name '</span><span style="color: #FF0000;">'securityConfiguration'</span><span style="color: #FF0000;">': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.springframework.security.core.userdetails.UserDetailsService de.sveri.mct.config.SecurityConfiguration.userDetailsService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '</span><span style="color: #FF0000;">'userDetailsService'</span><span style="color: #FF0000;">': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private de.sveri.mct.repository.UserRepository de.sveri.mct.security.UserDetailsService.userRepository; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '</span><span style="color: #FF0000;">'userRepository'</span><span style="color: #FF0000;">': Cannot create inner bean '</span><span style="color: #FF0000;">'(inner bean)#58e814e6'</span><span style="color: #FF0000;">' of type [org.springframework.orm.jpa.SharedEntityManagerCreator] while setting bean property '</span><span style="color: #FF0000;">'entityManager'</span><span style="color: #FF0000;">'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '</span><span style="color: #FF0000;">'(inner bean)#58e814e6'</span><span style="color: #FF0000;">': Cannot resolve reference to bean '</span><span style="color: #FF0000;">'entityManagerFactory'</span><span style="color: #FF0000;">' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '</span><span style="color: #FF0000;">'entityManagerFactory'</span><span style="color: #FF0000;">' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaAutoConfiguration.class]: Invocation of init method failed; nested exception is javax.persistence.PersistenceException: [PersistenceUnit: default] Unable to build Hibernate SessionFactory<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:334)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1210)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:523)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:512)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.security.config.annotation.web.configuration.AutowiredWebSecurityConfigurersIgnoreParents.getWebSecurityConfigurers(AutowiredWebSecurityConfigurersIgnoreParents.java:52)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at java.lang.reflect.Method.invoke(Method.java:483)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.expression.spel.support.ReflectiveMethodExecutor.execute(ReflectiveMethodExecutor.java:112)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.expression.spel.ast.MethodReference.getValueInternal(MethodReference.java:129)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.expression.spel.ast.MethodReference.access$000(MethodReference.java:49)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.expression.spel.ast.MethodReference$MethodValueRef.getValue(MethodReference.java:342)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.expression.spel.ast.CompoundExpression.getValueInternal(CompoundExpression.java:88)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.expression.spel.ast.SpelNodeImpl.getValue(SpelNodeImpl.java:120)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.expression.spel.standard.SpelExpression.getValue(SpelExpression.java:242)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.context.expression.StandardBeanExpressionResolver.evaluate(StandardBeanExpressionResolver.java:161)<br />
&nbsp; &nbsp; &nbsp; &nbsp; ... 40 more<br />
Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.springframework.security.core.userdetails.UserDetailsService de.sveri.mct.config.SecurityConfiguration.userDetailsService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '</span><span style="color: #FF0000;">'userDetailsService'</span><span style="color: #FF0000;">': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private de.sveri.mct.repository.UserRepository de.sveri.mct.security.UserDetailsService.userRepository; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '</span><span style="color: #FF0000;">'userRepository'</span><span style="color: #FF0000;">': Cannot create inner bean '</span><span style="color: #FF0000;">'(inner bean)#58e814e6'</span><span style="color: #FF0000;">' of type [org.springframework.orm.jpa.SharedEntityManagerCreator] while setting bean property '</span><span style="color: #FF0000;">'entityManager'</span><span style="color: #FF0000;">'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '</span><span style="color: #FF0000;">'(inner bean)#58e814e6'</span><span style="color: #FF0000;">': Cannot resolve reference to bean '</span><span style="color: #FF0000;">'entityManagerFactory'</span><span style="color: #FF0000;">' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '</span><span style="color: #FF0000;">'entityManagerFactory'</span><span style="color: #FF0000;">' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaAutoConfiguration.class]: Invocation of init method failed; nested exception is javax.persistence.PersistenceException: [PersistenceUnit: default] Unable to build Hibernate SessionFactory<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:561)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:331)<br />
&nbsp; &nbsp; &nbsp; &nbsp; ... 62 more<br />
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name '</span><span style="color: #FF0000;">'userDetailsService'</span><span style="color: #FF0000;">': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private de.sveri.mct.repository.UserRepository de.sveri.mct.security.UserDetailsService.userRepository; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '</span><span style="color: #FF0000;">'userRepository'</span><span style="color: #FF0000;">': Cannot create inner bean '</span><span style="color: #FF0000;">'(inner bean)#58e814e6'</span><span style="color: #FF0000;">' of type [org.springframework.orm.jpa.SharedEntityManagerCreator] while setting bean property '</span><span style="color: #FF0000;">'entityManager'</span><span style="color: #FF0000;">'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '</span><span style="color: #FF0000;">'(inner bean)#58e814e6'</span><span style="color: #FF0000;">': Cannot resolve reference to bean '</span><span style="color: #FF0000;">'entityManagerFactory'</span><span style="color: #FF0000;">' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '</span><span style="color: #FF0000;">'entityManagerFactory'</span><span style="color: #FF0000;">' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaAutoConfiguration.class]: Invocation of init method failed; nested exception is javax.persistence.PersistenceException: [PersistenceUnit: default] Unable to build Hibernate SessionFactory<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:334)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1210)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1120)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1044)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:942)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:533)<br />
&nbsp; &nbsp; &nbsp; &nbsp; ... 64 more<br />
Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: private de.sveri.mct.repository.UserRepository de.sveri.mct.security.UserDetailsService.userRepository; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '</span><span style="color: #FF0000;">'userRepository'</span><span style="color: #FF0000;">': Cannot create inner bean '</span><span style="color: #FF0000;">'(inner bean)#58e814e6'</span><span style="color: #FF0000;">' of type [org.springframework.orm.jpa.SharedEntityManagerCreator] while setting bean property '</span><span style="color: #FF0000;">'entityManager'</span><span style="color: #FF0000;">'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '</span><span style="color: #FF0000;">'(inner bean)#58e814e6'</span><span style="color: #FF0000;">': Cannot resolve reference to bean '</span><span style="color: #FF0000;">'entityManagerFactory'</span><span style="color: #FF0000;">' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '</span><span style="color: #FF0000;">'entityManagerFactory'</span><span style="color: #FF0000;">' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaAutoConfiguration.class]: Invocation of init method failed; nested exception is javax.persistence.PersistenceException: [PersistenceUnit: default] Unable to build Hibernate SessionFactory<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:561)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:331)<br />
&nbsp; &nbsp; &nbsp; &nbsp; ... 75 more<br />
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name '</span><span style="color: #FF0000;">'userRepository'</span><span style="color: #FF0000;">': Cannot create inner bean '</span><span style="color: #FF0000;">'(inner bean)#58e814e6'</span><span style="color: #FF0000;">' of type [org.springframework.orm.jpa.SharedEntityManagerCreator] while setting bean property '</span><span style="color: #FF0000;">'entityManager'</span><span style="color: #FF0000;">'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '</span><span style="color: #FF0000;">'(inner bean)#58e814e6'</span><span style="color: #FF0000;">': Cannot resolve reference to bean '</span><span style="color: #FF0000;">'entityManagerFactory'</span><span style="color: #FF0000;">' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '</span><span style="color: #FF0000;">'entityManagerFactory'</span><span style="color: #FF0000;">' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaAutoConfiguration.class]: Invocation of init method failed; nested exception is javax.persistence.PersistenceException: [PersistenceUnit: default] Unable to build Hibernate SessionFactory<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:313)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:129)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1477)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1222)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1120)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1044)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:942)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:533)<br />
&nbsp; &nbsp; &nbsp; &nbsp; ... 77 more<br />
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name '</span><span style="color: #FF0000;">'(inner bean)#58e814e6'</span><span style="color: #FF0000;">': Cannot resolve reference to bean '</span><span style="color: #FF0000;">'entityManagerFactory'</span><span style="color: #FF0000;">' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '</span><span style="color: #FF0000;">'entityManagerFactory'</span><span style="color: #FF0000;">' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaAutoConfiguration.class]: Invocation of init method failed; nested exception is javax.persistence.PersistenceException: [PersistenceUnit: default] Unable to build Hibernate SessionFactory<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:359)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:108)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:634)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:444)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1119)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1014)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:504)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:299)<br />
&nbsp; &nbsp; &nbsp; &nbsp; ... 90 more<br />
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name '</span><span style="color: #FF0000;">'entityManagerFactory'</span><span style="color: #FF0000;">' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaAutoConfiguration.class]: Invocation of init method failed; nested exception is javax.persistence.PersistenceException: [PersistenceUnit: default] Unable to build Hibernate SessionFactory<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1574)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:351)<br />
&nbsp; &nbsp; &nbsp; &nbsp; ... 98 more<br />
Caused by: javax.persistence.PersistenceException: [PersistenceUnit: default] Unable to build Hibernate SessionFactory<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.persistenceException(EntityManagerFactoryBuilderImpl.java:1249)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.access$600(EntityManagerFactoryBuilderImpl.java:120)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl$4.perform(EntityManagerFactoryBuilderImpl.java:860)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl$4.perform(EntityManagerFactoryBuilderImpl.java:850)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.hibernate.boot.registry.classloading.internal.ClassLoaderServiceImpl.withTccl(ClassLoaderServiceImpl.java:425)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:849)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.orm.jpa.vendor.SpringHibernateJpaPersistenceProvider.createContainerEntityManagerFactory(SpringHibernateJpaPersistenceProvider.java:60)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:343)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:318)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1633)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1570)<br />
&nbsp; &nbsp; &nbsp; &nbsp; ... 105 more<br />
Caused by: org.hibernate.AnnotationException: Unknown mappedBy in: de.sveri.mct.domain.Topic.topic, referenced property unknown: de.sveri.mct.domain.Topic.topic<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.hibernate.cfg.OneToOneSecondPass.doSecondPass(OneToOneSecondPass.java:160)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.hibernate.cfg.Configuration.originalSecondPassCompile(Configuration.java:1697)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.hibernate.cfg.Configuration.secondPassCompile(Configuration.java:1426)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1846)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl$4.perform(EntityManagerFactoryBuilderImpl.java:857)<br />
&nbsp; &nbsp; &nbsp; &nbsp; ... 113 more<br />
Disconnected from the target VM, address: '</span><span style="color: #FF0000;">'127.0.0.1:54986'</span><span style="color: #FF0000;">', transport: '</span><span style="color: #FF0000;">'socket'</span><span style="color: #FF0000;">'<br />
<br />
Process finished with exit code 1'</span><span style="color: #808080;">&#41;</span><br />
GO</div></td></tr></tbody></table></div>
<p>Consultons maintenant la longueur de cette chaîne :</p>
<div class="codecolorer-container tsql vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br /></div></td><td><div class="tsql codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #0000FF;">SELECT</span>&nbsp; DATALENGTH<span style="color: #808080;">&#40;</span>log_label<span style="color: #808080;">&#41;</span> <span style="color: #0000FF;">AS</span> byte_length<br />
<span style="color: #0000FF;">FROM</span>&nbsp; &nbsp; dbo.<span style="color: #202020;">application_log</span></div></td></tr></tbody></table></div>
<p>Nous obtenons 111640. Si nous exécutons maintenant :</p>
<div class="codecolorer-container tsql vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br /></div></td><td><div class="tsql codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #0000FF;">SELECT</span>&nbsp; log_label<br />
<span style="color: #0000FF;">FROM</span>&nbsp; &nbsp; dbo.<span style="color: #202020;">application_log</span></div></td></tr></tbody></table></div>
<p>Puis que l&rsquo;on réalise un copier-coller de la valeur dans une nouvelle fenêtre de requête, nous allons voir que nous n&rsquo;obtenons pas l&rsquo;intégralité du texte :</p>
<p><img src="http://i.imgur.com/2OAf2Ps.png" alt="" /></p>
<p>On a remarqué cependant que les documents XML, notamment les plans de requête, sont récupérables dans leur intégralité, alors que ce sont généralement des documents sont relativement longs. Tentons donc :</p>
<div class="codecolorer-container tsql vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br /></div></td><td><div class="tsql codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #0000FF;">SELECT</span>&nbsp; <span style="color: #0000FF;">CAST</span><span style="color: #808080;">&#40;</span>log_label <span style="color: #0000FF;">AS</span> XML<span style="color: #808080;">&#41;</span> <span style="color: #0000FF;">AS</span> log_label<br />
<span style="color: #0000FF;">FROM</span>&nbsp; &nbsp; dbo.<span style="color: #202020;">application_log</span></div></td></tr></tbody></table></div>
<p>Ceci se termine directement avec l&rsquo;erreur suivante affichée dans la console :</p>
<blockquote><p>Msg 9400, Level 16, State 1, Line 526<br />
XML parsing: line 513, character 33, unexpected end of input</p></blockquote>
<p>Si l&rsquo;on en vient cependant à utiliser le marqueur de section texte CDATA, qui échappe l&rsquo;interprétation XML du document considéré, on obtient :</p>
<div class="codecolorer-container tsql vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br /></div></td><td><div class="tsql codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #0000FF;">SELECT</span>&nbsp; <span style="color: #0000FF;">CAST</span><span style="color: #808080;">&#40;</span><span style="color: #FF0000;">''</span> <span style="color: #0000FF;">AS</span> xml<span style="color: #808080;">&#41;</span><br />
<span style="color: #0000FF;">FROM</span>&nbsp; &nbsp; dbo.<span style="color: #202020;">application_log</span></div></td></tr></tbody></table></div>
<p><img src="http://i.imgur.com/oWoUkuq.png" alt="" /></p>
<p>En cliquant sur le lien proposé, un nouvel onglet s&rsquo;ouvre, dans lequel l&rsquo;intégralité du texte est exposée :</p>
<p><img src="http://i.imgur.com/4Nbl42U.png" alt="" /></p>
<p>Bonne consultation de logs !</p>
<p>@++ <img src="https://blog.developpez.com/elsuket/wp-includes/images/smilies/icon_wink.gif" alt=";)" class="wp-smiley" /></p>
]]></content:encoded>
			<wfw:commentRss></wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Comment remplacer les espaces et tabulations en fin de lignes dans les modules de code sans trop d&#8217;effort ?</title>
		<link>https://blog.developpez.com/elsuket/p12857/sql-server-management-studio/comment-remplacer-les-espaces-et-tabulations-en-fin-de-lignes-dans-les-modules-de-code-sans-trop-deffort</link>
		<comments>https://blog.developpez.com/elsuket/p12857/sql-server-management-studio/comment-remplacer-les-espaces-et-tabulations-en-fin-de-lignes-dans-les-modules-de-code-sans-trop-deffort#comments</comments>
		<pubDate>Sat, 28 Mar 2015 10:10:32 +0000</pubDate>
		<dc:creator><![CDATA[elsuket]]></dc:creator>
				<category><![CDATA[SQL Server Management Studio]]></category>
		<category><![CDATA[expression régulière]]></category>
		<category><![CDATA[recherche]]></category>
		<category><![CDATA[remplacement]]></category>

		<guid isPermaLink="false">http://blog.developpez.com/elsuket/?p=1126</guid>
		<description><![CDATA[SQL Server Management Studio dispose d&#8217;un outil de recherche et de remplacement de texte, qui permet notamment de travailler avec des expressions régulières. Il m&#8217;arrive souvent dans des tâches de refactoring de trouver un très grand nombre d&#8217;espaces ou de &#8230; <a href="https://blog.developpez.com/elsuket/p12857/sql-server-management-studio/comment-remplacer-les-espaces-et-tabulations-en-fin-de-lignes-dans-les-modules-de-code-sans-trop-deffort">Lire la suite <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>SQL Server Management Studio dispose d&rsquo;un outil de recherche et de remplacement de texte, qui permet notamment de travailler avec des expressions régulières. Il m&rsquo;arrive souvent dans des tâches de refactoring de trouver un très grand nombre d&rsquo;espaces ou de tabulations à la fin des lignes, et je suis bien plus passionné par optimiser et standardiser le code que par supprimer ce type de micro-boulettes.</p>
<p><span id="more-1126"></span><br />
On trouve l&rsquo;outil de recherche et de remplacement de texte en suivant le menu <em>Edit</em>, ou en pressant CTRL + F pour la recherche, et CTRL + H pour le remplacement :</p>
<p><img src="http://i.imgur.com/uNxK0ZI.png" alt="" /> </p>
<p>Dans le simple but de standardiser le code, l&rsquo;expression régulière :b+\n, qui signifie tout espace ou tabulation avant le retour à la ligne, peut simplement être remplacée par \n :</p>
<p><img src="http://i.imgur.com/phsX90I.png" alt="" /></p>
<p>Un simple clic sur <em>Replace All</em>, et les vilains espaces et tabulations sont soustraits.</p>
<p>Au-delà de ceci, vous pouvez considérer que je pinaille, voire même que je suis maniaque. C&rsquo;est probablement vrai ! Mais il faut aussi considérer le cache de requêtes. Si l&rsquo;on prend une requête et qu&rsquo;on lui ajoute un espace, une tabulation, ou tout autre caractère sans effet sur la syntaxe ou le résultat de cette requête, SQL Server considère ceci, au niveau du cache de requêtes, comme deux requêtes différentes, étant donné que leur valeur de hachage sera différente. C&rsquo;est à l&rsquo;aide de cette valeur que le moteur vérifie s&rsquo;il existe déjà un plan en cache pour cette requête ou non.</p>
]]></content:encoded>
			<wfw:commentRss></wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Analyse de plans de requête : SQL Sentry Plan Explorer</title>
		<link>https://blog.developpez.com/elsuket/p10724/utilitaires/sql_sentry_plan_explorer</link>
		<comments>https://blog.developpez.com/elsuket/p10724/utilitaires/sql_sentry_plan_explorer#comments</comments>
		<pubDate>Sat, 18 Feb 2012 16:42:56 +0000</pubDate>
		<dc:creator><![CDATA[elsuket]]></dc:creator>
				<category><![CDATA[SQL Server Management Studio]]></category>
		<category><![CDATA[Utilitaires]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Si les plans d&#8217;exécution graphiques sont un bon outil pour faciliter la lecture des plans, l&#8217;outil souffre de quelques lacunes que SQL Sentry Plan Explorer a su combler. Depuis que je l&#8217;ai téléchargé pour la première fois, je ne peux &#8230; <a href="https://blog.developpez.com/elsuket/p10724/utilitaires/sql_sentry_plan_explorer">Lire la suite <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>Si les plans d&rsquo;exécution graphiques sont un bon outil pour faciliter la lecture des plans, l&rsquo;outil souffre de quelques lacunes que SQL Sentry Plan Explorer a su combler.<br />
Depuis que je l&rsquo;ai téléchargé pour la première fois, je ne peux plus m&rsquo;en passer <img src="https://blog.developpez.com/elsuket/wp-includes/images/smilies/icon_smile.gif" alt=":)" class="wp-smiley" /><br />
<span id="more-124"></span><br />
C&rsquo;est un logiciel qui est gratuitement proposé par SQL Sentry, disponible sur <a href="http://www.sqlsentry.net/plan-explorer/sql-server-query-view.asp">cette page</a>.<br />
N&rsquo;oubliez pas de télécharger le plug-in pour <em>SQL Server Management Studio</em> (SSMS).</p>
<p>Lorsque le plan comporte de nombreuses icônes, dans SSMS, on est obligé de jouer énormément avec les curseurs pour voir où se situe le problème.<br />
Ce n&rsquo;est pas le cas avec <em>Plan Explorer</em>, qui utilise un format plus compact.<br />
Pour le même plan, voici ce que l&rsquo;on voit dans SSMS :</p>
<p><img src="http://blog.developpez.com/media/pe02.png" width="1222" height="720" alt="" /></p>
<p>Et dans <em>Plan Explorer</em> :</p>
<p><img src="http://blog.developpez.com/media/pe01.png" width="1578" height="390" alt="" /></p>
<p>Je suppose qu&rsquo;avec cette première capture d&rsquo;écran vous aurez remarqué d&rsquo;autre différences :</p>
<p>&#8211; Les cardinalités sont affichées sur les flèches<br />
&#8211; Les opérations les plus coûteuses sont mises en évidence. On peut notamment les visualiser par coût E/S et par coût CPU :</p>
<p><img src="http://blog.developpez.com/media/pe03.png" width="862" height="350" alt="" /></p>
<p>Vous le voyez, il est également très simple de comparer les cardinalités estimées et réelles, ce qui permet rapidement de savoir s&rsquo;il s&rsquo;agit d&rsquo;un problème d&rsquo;estimation de ces dernières.<br />
L&rsquo;option <em>Full object names</em> affiche le nom complet de l&rsquo;objet et de l&rsquo;index, ce qui permet de ne pas avoir à passer le curseur sur les icônes pour savoir quel index a été utilisé.</p>
<p>Enfin les infobulles sont toujours présentes, mais mieux présentées parce qu&rsquo;ordonnées.<br />
Voici donc ce que l&rsquo;on voit sans SSMS pour une icône de plan d&rsquo;exécution graphique :</p>
<p><img src="http://blog.developpez.com/media/pe04.png" width="753" height="650" alt="" /></p>
<p>On aurait apprécié de voir par exemple le nombre de lignes estimé précéder directement le nombre de lignes réel, comme c&rsquo;est le cas dans <em>Plan Explorer</em> :</p>
<p><img src="http://blog.developpez.com/media/pe05.png" width="692" height="751" alt="" /></p>
<p>Les onglets situés au-dessus du plan sont assez pratiques également.<br />
Le <em>Plan Tree</em> est similaire au plan d&rsquo;exécution textuel proposé par SSMS, mais présenté beaucoup plus clairement :</p>
<p>Je passe sur <em>Top Operations</em> et <em>Query Columns</em>, dont leurs noms parlent d&rsquo;eux-mêmes, pour passer à <em>Expressions</em> :</p>
<p><img src="http://blog.developpez.com/media/pe07.png" width="1337" height="139" alt="" /></p>
<p>Désormais les <em>Expr10XX</em> sont décryptables sans avoir à se plonger dans le document XML qu&rsquo;interprètent ces deux outils <img src="https://blog.developpez.com/elsuket/wp-includes/images/smilies/icon_smile.gif" alt=":)" class="wp-smiley" /></p>
<p>Autre implémentation intéressante : lorsqu&rsquo;on obtient le plan d’exécution d&rsquo;une procédure stockée ou d&rsquo;un lot de requêtes, le plan est affiché requête par requête dans <em>Plan Explorer</em>, au lieu d&rsquo;avoir tous les plans affichés dans l&rsquo;onglet <em>Plan d&rsquo;exécution</em> de SSMS :</p>
<p><img src="http://img688.imageshack.us/img688/4394/pe09.png" alt="" title="" /></p>
<p>Enfin on peut choisir les colonnes à afficher dans l&rsquo;onglet <em>Statements Tree</em> :</p>
<p><img src="http://blog.developpez.com/media/pe10.png" width="850" height="259" alt="" /></p>
<p><img src="http://img37.imageshack.us/img37/1612/pe11.png" alt="" title="" /></p>
<p>Il est donc simple d&rsquo;ajouter ou supprimer des colonnes.</p>
<p>Alors bonne lecture de plans d&rsquo;exécution !</p>
<p>ElSüket <img src="https://blog.developpez.com/elsuket/wp-includes/images/smilies/icon_wink.gif" alt=";)" class="wp-smiley" /></p>
]]></content:encoded>
			<wfw:commentRss></wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Voir les statistiques du client avec SQL Server Management Studio</title>
		<link>https://blog.developpez.com/elsuket/p8315/moteur-de-base-de-donnees-sql-server/voir_les_statistiques_du_client_avec_sql</link>
		<comments>https://blog.developpez.com/elsuket/p8315/moteur-de-base-de-donnees-sql-server/voir_les_statistiques_du_client_avec_sql#comments</comments>
		<pubDate>Thu, 12 Nov 2009 23:14:00 +0000</pubDate>
		<dc:creator><![CDATA[elsuket]]></dc:creator>
				<category><![CDATA[Moteur de base de données SQL Server]]></category>
		<category><![CDATA[SQL Server Management Studio]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Nombreux sont les boutons dans la barre d&#8217;outils de l&#8217;éditeur SQL proposé par SQL Server Management Studio (SSMS). L&#8217;un d&#8217;entre eux permet d&#8217;obtenir des statistiques sur l&#8217;exécution de requêtes, sur les échanges réseau entre SSMS et le moteur de base &#8230; <a href="https://blog.developpez.com/elsuket/p8315/moteur-de-base-de-donnees-sql-server/voir_les_statistiques_du_client_avec_sql">Lire la suite <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>Nombreux sont les boutons dans la barre d&rsquo;outils de l&rsquo;éditeur SQL proposé par <em>SQL Server Management Studio</em> (SSMS).</p>
<p>L&rsquo;un d&rsquo;entre eux permet d&rsquo;obtenir des statistiques sur l&rsquo;exécution de requêtes, sur les échanges réseau entre SSMS et le moteur de base de données, et sur le temps d&rsquo;exécution de la requête, comme par exemple le délai d&rsquo;attente de réponse du serveur.</p>
<p>Voyons comment les obtenir &#8230;<br />
<span id="more-144"></span><br />
Il suffit pour cela d&rsquo;activer le bouton &laquo;&nbsp;<em>Inclure les statistiques du client</em>&laquo;&nbsp;, pour voir celles-ci apparaître dans un nouvel onglet de la zone de résultat dès la première exécution d&rsquo;une requête :</p>
<p><img src="http://blog.developpez.com/media/statsclient1.png" width="832" height="667" alt="" /></p>
<p>La date et l&rsquo;heure de chaque exécution de la requête sont fournies, et les statistiques sont mises à jour d&rsquo;une exécution de requête à l&rsquo;autre, quelle que soit la requête que vous exécutez : les statistiques sont collectées pour une session, c&rsquo;est-à-dire une fenêtre de requête.</p>
<p>Les évolutions des valeurs de chaque colonnes sont symbolisées par des flèches qui indiquent le sens de l&rsquo;évolution des statistiques :</p>
<p><img src="http://blog.developpez.com/media/statsclient2.png" width="778" height="629" alt="" /></p>
<p>Le code de la procédure stockée étant très simple, les statistiques de profil de requête et de réseau n&rsquo;évoluent pas, mais les statistiques de temps ont varié au cours des 4 exécutions.</p>
<p>Cela nous permettra donc de mesurer avec facilité la façon dont sont échangées les données entre les applications et le serveur de base de données pour une requête donnée :</p>
<p>&#8211; temps réel d&rsquo;exécution pour le comparer au temps consacré à l&rsquo;échange de données,<br />
&#8211; quantité de données qui transite sur le réseau,<br />
&#8211; nombre de lignes moyen affecté par la requête, si l&rsquo;on fait varier d&rsquo;une exécution à l&rsquo;autre la valeur de paramètres, &#8230;</p>
]]></content:encoded>
			<wfw:commentRss></wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Rechercher rapidement du texte avec SQL Server Management Studio</title>
		<link>https://blog.developpez.com/elsuket/p8206/sql-server-management-studio/rechercher_rapidement_du_texteavec_sql_s</link>
		<comments>https://blog.developpez.com/elsuket/p8206/sql-server-management-studio/rechercher_rapidement_du_texteavec_sql_s#comments</comments>
		<pubDate>Sun, 18 Oct 2009 13:57:00 +0000</pubDate>
		<dc:creator><![CDATA[elsuket]]></dc:creator>
				<category><![CDATA[SQL Server Management Studio]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Parmi les nombreux boutons optionnels proposés par les barres d&#8217;outils de SQL Server Management Studio, il en est une qui permet d&#8217;effectuer simplement un recherche dans le fichier en cours. Voyons comment ajouter cette saisie &#8230; Cliquons sur le petit &#8230; <a href="https://blog.developpez.com/elsuket/p8206/sql-server-management-studio/rechercher_rapidement_du_texteavec_sql_s">Lire la suite <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>Parmi les nombreux boutons optionnels proposés par les barres d&rsquo;outils de SQL Server Management Studio, il en est une qui permet d&rsquo;effectuer simplement un recherche dans le fichier en cours.<br />
Voyons comment ajouter cette saisie &#8230;<br />
<span id="more-143"></span><br />
Cliquons sur le petit bouton de la barre standard qui permet d&rsquo;ajouter ou de supprimer des boutons, puis choisissons &laquo;&nbsp;Personnaliser&nbsp;&raquo; :</p>
<p><img src="http://blog.developpez.com/media/quicksearch1.png" width="510" height="168" alt="" /></p>
<p>Choisissons ensuite la catégorie &laquo;&nbsp;Edition&nbsp;&raquo;, puis dans la liste de droite, &laquo;&nbsp;Atteindre la liste modifiable de recherche&nbsp;&raquo; :</p>
<p><img src="http://blog.developpez.com/media/quicksearch2.png" width="897" height="631" alt="" /></p>
<p>Par un clic sur cet item, nous pouvons le faire glisser vers la barre standard (ou autre) :</p>
<p><img src="http://blog.developpez.com/media/quicksearch3.png" width="897" height="631" alt="" /></p>
<p>Et voici notre saisie pour la recherche rapide :</p>
<p><img src="http://blog.developpez.com/media/quicksearch4.png" width="897" height="631" alt="" /></p>
<p>Nous pouvons commencer à l&rsquo;utiliser dès que nous avons cliqué sur le bouton &laquo;&nbsp;Fermer&nbsp;&raquo; :</p>
<p><img src="http://blog.developpez.com/media/quicksearch5.png" width="906" height="474" alt="" /></p>
<p>ElSuket</p>
]]></content:encoded>
			<wfw:commentRss></wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Créer des règles de gestion de base de données avec SSMS 2008</title>
		<link>https://blog.developpez.com/elsuket/p7809/utilitaires/creer_des_regles_de_gestion_de_base_de_d_2008</link>
		<comments>https://blog.developpez.com/elsuket/p7809/utilitaires/creer_des_regles_de_gestion_de_base_de_d_2008#comments</comments>
		<pubDate>Sun, 28 Jun 2009 18:42:28 +0000</pubDate>
		<dc:creator><![CDATA[elsuket]]></dc:creator>
				<category><![CDATA[SQL Server Management Studio]]></category>
		<category><![CDATA[Utilitaires]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Une nouvelle fonctionnalité introduite avec SQL Server 2008 est la gestion d&#8217;instances de SQL Server 2008 basée sur des &#171;&#160;stratégies&#160;&#187; (que l&#8217;on peut voir comme des polices de gestion), Elle permet de normaliser de nombreuses entités de l&#8217;instance SQL Server &#8230; <a href="https://blog.developpez.com/elsuket/p7809/utilitaires/creer_des_regles_de_gestion_de_base_de_d_2008">Lire la suite <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>Une nouvelle fonctionnalité introduite avec SQL Server 2008 est la gestion d&rsquo;instances de SQL Server 2008 basée sur des &laquo;&nbsp;stratégies&nbsp;&raquo; (que l&rsquo;on peut voir comme des polices de gestion),</p>
<p>Elle permet de normaliser de nombreuses entités de l&rsquo;instance SQL Server 2008, allant de l&rsquo;instance elle même jusqu&rsquo;au nom des objets, en passant les bases de données ou les entités de sécurité, et bien d&rsquo;autres encore.</p>
<p>Il est de plus possible de propager les règles ainsi créées avec la fonctionnalité d&rsquo;import / export de stratégies de gestion.<br />
Je vous propose d&rsquo;en voir une application &#8230;</p>
<p><span id="more-141"></span><br />
Nous avons vu apparaître avec <em>SQL Server Management Studio 2008</em> (SSMS) la nouvelle node &laquo;&nbsp;Gestion de la stratégie&nbsp;&raquo; sous la node &laquo;&nbsp;Gestion&nbsp;&raquo; que l&rsquo;on trouvait sous SSMS 2005.<br />
Ouvrons cette node, et voyons les possibilités qu&rsquo;elle nous offre :</p>
<p><img src="http://blog.developpez.com/media/gesStrat1.PNG" width="371" height="434" alt="" /></p>
<p>On peut ici définir une nouvelle stratégie, c&rsquo;est-à-dire un jeu de régles suivant la multitude de &laquo;&nbsp;Facettes&nbsp;&raquo; qui nous sont proposées :</p>
<p><img src="http://blog.developpez.com/media/gesStrat2.PNG" width="441" height="601" alt="" /></p>
<p>En double-cliquant sur une facette, on peut voir tous les paramètres pour lesquels ont peut vérifier une contrainte :</p>
<p><img src="http://blog.developpez.com/media/gesStrat6.PNG" width="819" height="574" alt="" /></p>
<p>Nous allons maintenant créer un jeu de règles pour les options de bases de données, en choisissant l&rsquo;option &laquo;&nbsp;Nouvelle stratégie &#8230;&nbsp;&raquo; du clic-droit sur la node &laquo;&nbsp;Stratégies&nbsp;&raquo; :</p>
<p><img src="http://blog.developpez.com/media/gesStrat3.PNG" width="760" height="598" alt="" /></p>
<p>Après avoir saisi le nom de la stratégie, l&rsquo;interface offre le choix de créer une nouvelle condition:</p>
<p><img src="http://blog.developpez.com/media/gesStrat4.PNG" width="759" height="595" alt="" /></p>
<p>Nous allons vérifier, par exemple, que toutes les bases de données de l&rsquo;instance :</p>
<p>&#8211; ont bien l&rsquo;option AUTO_CLOSE à OFF<br />
&#8211; ont le niveau de compatibilité 100</p>
<p>Après avoir donné un nom à la condition, on retrouve dans une liste déroulante la liste de toutes les facettes que nous avons vue plus haut:</p>
<p><img src="http://blog.developpez.com/media/gesStrat5.PNG" width="747" height="530" alt="" /></p>
<p>Et pour chacune d&rsquo;elle la liste des valeurs d&rsquo;options pour lesquelles on peut vérifier une condition :</p>
<p><img src="http://blog.developpez.com/media/gesStrat7.PNG" width="747" height="530" alt="" /></p>
<p>Notez que vous pouvez spécifier plusieurs vérifications au sein de la même condition, et spécifier l&rsquo;opérateur :</p>
<p><img src="http://blog.developpez.com/media/gesStrat8.PNG" width="818" height="529" alt="" /></p>
<p>On peut ainsi créer le jeu de vérifications suivant :</p>
<p><img src="http://blog.developpez.com/media/gesStrat9.PNG" width="746" height="529" alt="" /></p>
<p>Après validation, on peut créer un autre jeu de conditions et les grouper dans la même stratégie :</p>
<p><img src="http://blog.developpez.com/media/gesStrat10.PNG" width="759" height="597" alt="" /></p>
<p>on peut choisir d&rsquo;évaluer ces règles à la demande ou sur planification :</p>
<p><img src="http://blog.developpez.com/media/gesStrat11.PNG" width="759" height="595" alt="" /></p>
<p>Il est dommage que l&rsquo;on ne puisse pas créer d&rsquo;autres planifications que celles qui sont proposées &#8230;</p>
<p>Nous ne posons pas de restriction de serveur, mais on peut en mettre une pour ne pas appliquer ces règles suivant le serveur, en définissant suivant le même modèle des règles de restrictions.</p>
<p>Après validation, nous retrouvons ce que nous venons de créer :</p>
<p><img src="http://blog.developpez.com/media/gesStrat12.PNG" width="375" height="452" alt="" /></p>
<p>Nous pouvons évaluer ce jeu de règles, et comme vous le voyez, visualiser l&rsquo;historique de cette stratégie dans le cas où nous l&rsquo;aurions planifiée :</p>
<p><img src="http://blog.developpez.com/media/grStrat13.PNG" width="567" height="564" alt="" /></p>
<p>Évaluons donc la stratégie immédiatement :</p>
<p><img src="http://blog.developpez.com/media/grStrat14.PNG" width="1079" height="677" alt="" /></p>
<p>Nous voyons tout de suite quelle stratégie n&rsquo;est pas respectée, et en cochant les cases correpondantes aux stratégies et conditions que nous voulons voir validées, on peut appliquer directement les changement adéquats.<br />
La boîte de dialogue suivante apparaît après avoir choisi &laquo;&nbsp;Appliquer&nbsp;&raquo; :</p>
<p><img src="http://blog.developpez.com/media/grStrat15.PNG" width="611" height="156" alt="" /></p>
<p>Les changements sont alors appliqués, et les conditions immédiatement réévaluées :</p>
<p><img src="http://blog.developpez.com/media/grStrat16.PNG" width="1078" height="678" alt="" /></p>
<p>ElSuket</p>
]]></content:encoded>
			<wfw:commentRss></wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Générer le script complet des objets d&#8217;une base de données</title>
		<link>https://blog.developpez.com/elsuket/p7945/utilitaires/generer_le_script_complet_des_objets_d_u</link>
		<comments>https://blog.developpez.com/elsuket/p7945/utilitaires/generer_le_script_complet_des_objets_d_u#comments</comments>
		<pubDate>Tue, 11 Aug 2009 22:37:43 +0000</pubDate>
		<dc:creator><![CDATA[elsuket]]></dc:creator>
				<category><![CDATA[SQL Server Management Studio]]></category>
		<category><![CDATA[Utilitaires]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Voici comment générer le script des objets de base de données (tables, vues, procédures stockées, fonctions, &#8230;) sans ses données, à l&#8217;aide de SQL Server Management Studio. Commençons par un clic-droit sur la base de données à scripter : Immédiatement &#8230; <a href="https://blog.developpez.com/elsuket/p7945/utilitaires/generer_le_script_complet_des_objets_d_u">Lire la suite <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>Voici comment générer le script des objets de base de données (tables, vues, procédures stockées, fonctions, &#8230;) sans ses données, à l&rsquo;aide de <em>SQL Server Management Studio.</em></p>
<p><span id="more-128"></span></p>
<p>Commençons par un clic-droit sur la base de données à scripter :</p>
<p><img src="http://blog.developpez.com/media/scriptDB1.png" width="839" height="648" alt="" /></p>
<p>Immédiatement l&rsquo;<em>Assistant Génération de Scripts SQL Server</em> démarre :</p>
<p><img src="http://blog.developpez.com/media/scriptDB3.png" width="493" height="449" alt="" /></p>
<p>Après avoir cliqué sur <em>Suivant</em>, nous pouvons choisir la base de données de l&rsquo;instance SQL Server courante que nous voulons scripter.<br />
Comme nous voulons recréer toute l&rsquo;organisation logique qu&rsquo;abrite la base de données, il nous suffit de cocher &laquo;&nbsp;<em>Générer un script pour tous les objets dans la base de données</em>&nbsp;&raquo;</p>
<p><img src="http://blog.developpez.com/media/scriptDB4.png" width="493" height="449" alt="" /></p>
<p>Ici nous pouvons choisir quelques options pour la génération du script, notamment dès SQL Server 2008, la génération des instructions INSERT pour disposer également des <a href="http://blog.developpez.com/elsuket/p7902/sql-server-management-studio/generer-le-script-de-tables-et-des-donne-2008/">données</a></p>
<p><img src="http://blog.developpez.com/media/scriptDB5.png" width="493" height="447" alt="" /></p>
<p>Généralement c&rsquo;est une étape que l&rsquo;on peut sauter, car les options de script sont correctement configurées.</p>
<p>Ici nous pouvons choisir vers quel support nous allons générer le script, l&rsquo;option &laquo;&nbsp;<em>Générer un script dans une nouvelle fenêtre de requête</em>&nbsp;&raquo; étant sélectionnée par défaut :</p>
<p><img src="http://blog.developpez.com/media/scriptDB6.png" width="679" height="448" alt="" /></p>
<p>Cliquons sur suivant : nous obtenons un résumé du paramétrage du script</p>
<p><img src="http://blog.developpez.com/media/scriptDB7.png" width="680" height="449" alt="" /></p>
<p>En cliquant sur &laquo;&nbsp;<em>Terminer</em>&laquo;&nbsp;, la génération débute :</p>
<p><img src="http://blog.developpez.com/media/scriptDB8.png" width="680" height="449" alt="" /></p>
<p>Et dès la fin de la génération, une nouvelle fenêtre de requête est ouverte, et donne le script :</p>
<div class="codecolorer-container text vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;height:300px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br />23<br />24<br />25<br />26<br />27<br />28<br />29<br />30<br />31<br />32<br />33<br />34<br />35<br />36<br />37<br />38<br />39<br />40<br />41<br />42<br />43<br />44<br />45<br />46<br />47<br />48<br />49<br />50<br />51<br />52<br />53<br />54<br />55<br />56<br />57<br />58<br />59<br />60<br />61<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">USE [ELSUKET] <br />
GO <br />
/****** Object: &nbsp;Table [dbo].[TbParametres] &nbsp; &nbsp;Script Date: 08/11/2009 23:25:27 ******/ <br />
SET ANSI_NULLS ON <br />
GO <br />
SET QUOTED_IDENTIFIER ON <br />
GO <br />
SET ANSI_PADDING ON <br />
GO <br />
CREATE TABLE [dbo].[TbParametres]( <br />
&nbsp; [IDParametre] [int] IDENTITY(1,1) NOT NULL, <br />
&nbsp; [nomParametre] [varchar](20) NOT NULL, <br />
&nbsp;CONSTRAINT [PK_TbParametres_IDParametre] PRIMARY KEY CLUSTERED &nbsp;<br />
( <br />
&nbsp; [IDParametre] ASC <br />
)WITH (PAD_INDEX &nbsp;= OFF, STATISTICS_NORECOMPUTE &nbsp;= OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS &nbsp;= ON, ALLOW_PAGE_LOCKS &nbsp;= ON) ON [PRIMARY], <br />
&nbsp;CONSTRAINT [UQ_TbParametres_nomParametre] UNIQUE NONCLUSTERED &nbsp;<br />
( <br />
&nbsp; [nomParametre] ASC <br />
)WITH (PAD_INDEX &nbsp;= OFF, STATISTICS_NORECOMPUTE &nbsp;= OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS &nbsp;= ON, ALLOW_PAGE_LOCKS &nbsp;= ON) ON [PRIMARY] <br />
) ON [PRIMARY] <br />
GO <br />
SET ANSI_PADDING OFF <br />
GO <br />
/****** Object: &nbsp;UserDefinedFunction [dbo].[FnGetLastSuccessfulJobExecution] &nbsp; &nbsp;Script Date: 08/11/2009 23:25:30 ******/ <br />
SET ANSI_NULLS ON <br />
GO <br />
SET QUOTED_IDENTIFIER ON <br />
GO <br />
---------------------------------------------------------------------------------------- <br />
-- Nicolas SOUQUET - 04/08/2009 - Recherche la dernière date de bonne exécution d'un job <br />
---------------------------------------------------------------------------------------- <br />
CREATE FUNCTION [dbo].[FnGetLastSuccessfulJobExecution] <br />
&nbsp; (@nomJob SYSNAME) <br />
&nbsp; RETURNS DATETIME <br />
AS <br />
BEGIN <br />
&nbsp; RETURN <br />
&nbsp; ( <br />
&nbsp; &nbsp; SELECT DateTimeExec + 1 <br />
&nbsp; &nbsp; FROM <br />
&nbsp; &nbsp; ( <br />
&nbsp; &nbsp; &nbsp; SELECT MAX(CAST(STUFF(STUFF(DateExec, 12, 0, ':'), 15, 0, ':') AS DATETIME)) AS DateTimeExec <br />
&nbsp; &nbsp; &nbsp; FROM <br />
&nbsp; &nbsp; &nbsp; ( <br />
&nbsp; &nbsp; &nbsp; &nbsp; SELECT CAST(H.run_date AS CHAR(8)) + ' ' + <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CASE LEN(CAST(H.run_time AS VARCHAR(6))) <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; WHEN 5 THEN '0' + CAST(H.run_time AS CHAR(5)) <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ELSE CAST(H.run_time AS CHAR(6)) <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; END AS DateExec <br />
&nbsp; &nbsp; &nbsp; &nbsp; FROM msdb.dbo.sysjobs AS J <br />
&nbsp; &nbsp; &nbsp; &nbsp; JOIN msdb.dbo.sysjobhistory AS H <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ON J.job_id = H.job_id <br />
&nbsp; &nbsp; &nbsp; &nbsp; WHERE J.name = @nomJob <br />
&nbsp; &nbsp; &nbsp; &nbsp; AND H.run_status = 1 <br />
&nbsp; &nbsp; &nbsp; &nbsp; AND H.step_id = 1 <br />
&nbsp; &nbsp; &nbsp; ) AS EXEC_JOB_TEST <br />
&nbsp; &nbsp; ) AS DER_EXEC_JOB_TEST_OK <br />
&nbsp; ) <br />
END <br />
GO</div></td></tr></tbody></table></div>
<p>Comme on le voit, il n&rsquo;y a pas l&rsquo;instruction CREATE DATABASE.<br />
Qu&rsquo;à cela ne tienne, il nous suffit de la générer aussi :</p>
<p><img src="http://blog.developpez.com/media/scriptDB9.png" width="894" height="496" alt="" /></p>
<div class="codecolorer-container text vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">USE [master] <br />
GO <br />
&nbsp;<br />
/****** Object: &nbsp;Database [ELSUKET] &nbsp; &nbsp;Script Date: 08/11/2009 23:34:04 ******/ <br />
CREATE DATABASE [ELSUKET] ON &nbsp;PRIMARY &nbsp;<br />
( NAME = N'ELSUKET', FILENAME = N'C:\Program Files\Microsoft SQL Server\MSSQL10.MSSQLSERVER\MSSQL\DATA\ELSUKET.mdf' , SIZE = 2048KB , MAXSIZE = UNLIMITED, FILEGROWTH = 1024KB ) <br />
&nbsp;LOG ON &nbsp;<br />
( NAME = N'ELSUKET_log', FILENAME = N'C:\Program Files\Microsoft SQL Server\MSSQL10.MSSQLSERVER\MSSQL\DATA\ELSUKET_log.LDF' , SIZE = 1024KB , MAXSIZE = 2048GB , FILEGROWTH = 5MB) <br />
GO <br />
&nbsp;<br />
IF (1 = FULLTEXTSERVICEPROPERTY('IsFullTextInstalled')) <br />
begin <br />
EXEC [ELSUKET].[dbo].[sp_fulltext_database] @action = 'enable' <br />
end <br />
GO <br />
&nbsp;<br />
... <br />
&nbsp;<br />
ALTER DATABASE [ELSUKET] SET DB_CHAINING OFF &nbsp;<br />
GO</div></td></tr></tbody></table></div>
<p>ElSuket</p>
]]></content:encoded>
			<wfw:commentRss></wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Différence entre LOGIN et USER, entre connexion et utilisateur</title>
		<link>https://blog.developpez.com/elsuket/p7848/t-sql/difference_entre_login_et_user_entre_con</link>
		<comments>https://blog.developpez.com/elsuket/p7848/t-sql/difference_entre_login_et_user_entre_con#comments</comments>
		<pubDate>Mon, 06 Jul 2009 20:25:01 +0000</pubDate>
		<dc:creator><![CDATA[elsuket]]></dc:creator>
				<category><![CDATA[Sécurité]]></category>
		<category><![CDATA[SQL Server Management Studio]]></category>
		<category><![CDATA[T-SQL]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Quelle est la différence entre une connexion, ou LOGIN, et un utilisateur de base de données ? Une connexion, ou login, permet d&#8217;accéder à une instance de SQL Server, mais c&#8217;est tout. Une instance de SQL Server pouvant héberger plusieurs &#8230; <a href="https://blog.developpez.com/elsuket/p7848/t-sql/difference_entre_login_et_user_entre_con">Lire la suite <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>Quelle est la différence entre une connexion, ou LOGIN, et un utilisateur de base de données ?</p>
<p><span id="more-145"></span></p>
<p><strong>Une connexion, ou login,</strong> permet d&rsquo;accéder à une instance de SQL Server, mais c&rsquo;est tout.<br />
Une instance de SQL Server pouvant héberger plusieurs bases de données utilisateur, nous ne souhaitons peut-être pas que tous les utilisateurs aient accès à toutes les bases de données d&rsquo;une instance, et de la même façon.<br />
On peut aussi créer une connexion à un utilisateur pour qu&rsquo;il puisse seulement effectuer des sauvegardes de base de données</p>
<p><strong>A toute connexion|login, peut correspondre un utilisateur de base de données.</strong><br />
L&rsquo;utilisateur de base de données est alors &laquo;&nbsp;mappé&nbsp;&raquo; sur une connexion, qui le donne le droit de naviguer dans 0 à autant de bases de données que l&rsquo;instance en héberge.<br />
Un administrateur ou les personnes à qui l&rsquo;administrateur en a délégué le droit peuvent accorder des droits d&rsquo;accès et des privilèges.</p>
<p><strong>Un droit d&rsquo;accès</strong> permet à un utilisateur de naviguer dans une base de données suivant des privilèges que l&rsquo;administrateur lui a octroyés.<br />
<strong>Un privilège</strong> permet de limiter l&rsquo;accès aux données, par exemple en refusant le droit de SELECT sur la colonne salaire de la table des employés aux utilisateurs employés.</p>
<p>On peut encore gérer plus globalement au niveau de la base de données ou de l&rsquo;instance les accès aux données en créant des rôles : on affecte ainsi au rôle des droits d&rsquo;accès et des privilèges, et lors de l&rsquo;arrivée d&rsquo;un nouvel utilisateur, il nous suffit de l&rsquo;ajouter au rôle de base de données.</p>
<p><strong>Pour créer une connexion :</strong></p>
<p><code class="codecolorer text default"><span class="text">CREATE LOGIN monLogin WITH PASSWORD = 'monMotDePasse'</span></code></p>
<p><strong>Pour permettre la navigation dans la base de données :</strong></p>
<div class="codecolorer-container text vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">USE maBD <br />
GO <br />
CREATE USER monUtilisateur FOR LOGIN monLogin</div></td></tr></tbody></table></div>
<p><strong>On peut créer de plusieurs façon un rôle :</strong></p>
<p>=> Soit par &laquo;&nbsp;recopie&nbsp;&raquo; des drois d&rsquo;un utilisateur :</p>
<div class="codecolorer-container text vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">USE maBD; <br />
CREATE ROLE monRole AUTHORIZATION unUtilsateur; <br />
GO</div></td></tr></tbody></table></div>
<p>=> Soit par recopie d&rsquo;un rôle de base de données existant :</p>
<div class="codecolorer-container text vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">USE maBD; <br />
CREATE ROLE monRole AUTHORIZATION db_securityadmin; <br />
GO</div></td></tr></tbody></table></div>
<p>Pour gérer les privilèges, on peut voir la documentation des instructions <a href="http://msdn.microsoft.com/fr-fr/library/ms187965%28SQL.90%29.aspx">GRANT</a>, <a href="http://msdn.microsoft.com/fr-fr/library/ms187728.aspx">REVOKE</a> et <a href="http://msdn.microsoft.com/fr-fr/library/ms188338.aspx">DENY</a></p>
<p><strong>On peut également réaliser tout cela à l&rsquo;aide de <em>SQL Server Management Studio :</em></strong></p>
<p>&#8211; Pour la création de la connexion, ouvrez la node &laquo;&nbsp;Sécurité&nbsp;&raquo; de votre instance, puis faites un clic-droit sur la node &laquo;&nbsp;Connexions&nbsp;&raquo;, et choisissez &laquo;&nbsp;Nouvelle connexion&nbsp;&raquo;</p>
<p><img src="http://blog.developpez.com/media/login.PNG" width="390" height="274" alt="" /></p>
<p><img src="http://blog.developpez.com/media/login2.PNG" width="704" height="632" alt="" /></p>
<p>&#8211; Pour la création de l&rsquo;utilisateur, après avoir ouvert la node possédant le nom de la base de données en question, ouvrez la node &laquo;&nbsp;Sécurité&nbsp;&raquo;, puis cliquez-droit sur la node &laquo;&nbsp;Utilisateurs&nbsp;&raquo; en choisissant &laquo;&nbsp;Nouvel utilisateur&nbsp;&raquo;</p>
<p><img src="http://blog.developpez.com/media/user.PNG" width="389" height="518" alt="" /></p>
<p><img src="http://blog.developpez.com/media/user2.PNG" width="704" height="771" alt="" /></p>
<p>Un peu de lecture par <a href="http://sqlpro.developpez.com/cours/sqlaz/dcl/">ici</a> et <a href="http://sqlpro.developpez.com/cours/sqlserver/securisation/">ici</a>, par SQLPro <img src="https://blog.developpez.com/elsuket/wp-includes/images/smilies/icon_wink.gif" alt=";)" class="wp-smiley" /></p>
<p>ElSuket</p>
]]></content:encoded>
			<wfw:commentRss></wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installation de SQL Server 2008</title>
		<link>https://blog.developpez.com/elsuket/p7891/moteur-de-base-de-donnees-sql-server/installation_de_sql_server_2008</link>
		<comments>https://blog.developpez.com/elsuket/p7891/moteur-de-base-de-donnees-sql-server/installation_de_sql_server_2008#comments</comments>
		<pubDate>Wed, 22 Jul 2009 22:25:28 +0000</pubDate>
		<dc:creator><![CDATA[elsuket]]></dc:creator>
				<category><![CDATA[Moteur de base de données SQL Server]]></category>
		<category><![CDATA[SQL Server Management Studio]]></category>
		<category><![CDATA[Utilitaires]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Voyons en quelques étapes comment se déroule l&#8217;installation de SQL Server 2008 sur une machine sur laquelle on vient d&#8217;installer un OS tout frais Dès l&#8217;exécution de l&#8217;autorun du DVD, nous obtenons la boîte suivante : Là, Microsoft a bien &#8230; <a href="https://blog.developpez.com/elsuket/p7891/moteur-de-base-de-donnees-sql-server/installation_de_sql_server_2008">Lire la suite <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>Voyons en quelques étapes comment se déroule l&rsquo;installation de SQL Server 2008 sur une machine sur laquelle on vient d&rsquo;installer un OS tout frais <img src="https://blog.developpez.com/elsuket/wp-includes/images/smilies/icon_wink.gif" alt=";)" class="wp-smiley" /></p>
<p><span id="more-83"></span></p>
<p>Dès l&rsquo;exécution de l&rsquo;autorun du DVD, nous obtenons la boîte suivante :</p>
<p><img src="http://blog.developpez.com/media/installSQLServer2008-01.JPG" width="798" height="146" alt="" /></p>
<p>Là, Microsoft a bien fait les choses en incluant dans la paquetage d&rsquo;installation le téléchargement du <em>.NET Framework</em> 3.5 : il n&rsquo;y a donc pas besoin de reprendre l&rsquo;installation.</p>
<p>Après avoir cliqué sur OK, on obtient donc la boîte de dialogue suivante :</p>
<p><img src="http://blog.developpez.com/media/installSQLServer2008-02.JPG" width="508" height="477" alt="" /></p>
<p>Et peu après avoir cliqué sur installer, le téléchargement débute :</p>
<p><img src="http://blog.developpez.com/media/installSQLServer2008-03.JPG" width="508" height="478" alt="" /></p>
<p>Elle est poursuivie par l&rsquo;installation du <em>.NET Framework</em> 3.5</p>
<p>Il n&rsquo;en va pas de même avec Windows Installer 4.5, qu&rsquo;il vous faut télécharger et installer : à faire avant de démarrer le processus d&rsquo;installation de SQL Server 2008 !</p>
<p>Pour le trouver facilement, vous pouvez vous rendre sur <a href="http://www.microsoft.com/downloads/details.aspx?displaylang=fr&amp;FamilyID=5a58b56f-60b6-4412-95b9-54d056d6f9f4">cette page</a></p>
<p>L&rsquo;installation se fait ensuite de façon très classique :</p>
<p><img src="http://blog.developpez.com/media/installSQLServer2008-05.JPG" width="505" height="394" alt="" /></p>
<p>Et il suffit d&rsquo;aceepter la CLUF pour voir l&rsquo;installation de Windows Installer 4.5 s&rsquo;effectuer et se terminer :</p>
<p><img src="http://blog.developpez.com/media/installSQLServer2008-06.JPG" width="507" height="395" alt="" /></p>
<p><img src="http://blog.developpez.com/media/installSQLServer2008-07.JPG" width="505" height="394" alt="" /></p>
<p>Reprenons donc l&rsquo;installation de SQL Server 2008 : nous obtenons maintenant la boîte suivante :</p>
<p><img src="http://blog.developpez.com/media/installSQLServer2008-08.JPG" width="584" height="113" alt="" /></p>
<p>Et après quelques secondes, le <em>Centre d&rsquo;installation SQL Server</em> s&rsquo;ouvre :</p>
<p><img src="http://blog.developpez.com/media/installSQLServer2008-09.JPG" width="800" height="497" alt="" /></p>
<p>Si tout cela paraît lourd de premier abord, il n&rsquo;en est en fait rien puisque cette interface vous permet de paramétrer presque totalement l&rsquo;instance de SQL Server.<br />
Voyons le détail des pages qui nous sont proposées.</p>
<p>Ici on peut vérifier que le serveur supportera bien SQL Server 2008 avec l&rsquo;item <em>Configuration matérielle et logicielle requise</em> et contrôler qu&rsquo;aucun paramètre système n&rsquo;empêchera le bon déroulement de l&rsquo;installation à l&rsquo;aide de l&rsquo;<em>outil d&rsquo;analyse de configuration</em>, qui s&rsquo;exécute rapidement et affiche un compte rendu clair :</p>
<p><img src="http://blog.developpez.com/media/installSQLServer2008-10.JPG" width="697" height="573" alt="" /></p>
<p>Passons aux éléments d&rsquo;installation à proprement parler :</p>
<p><img src="http://blog.developpez.com/media/installSQLServer2008-11.JPG" width="803" height="472" alt="" /></p>
<p>On peut réaliser tout les types d&rsquo;opérations d&rsquo;installation de SQL Server de l&rsquo;installation simple à la mise en place d&rsquo;un nouveau cluster, en passant par les mises à niveau d&rsquo;instances s&rsquo;exécutant sous SQL Server 2000 ou 2005 : tout est groupé au même endroit.</p>
<p>La page <em>Maintenance</em> permet de supprimer un cluster SQL Server, de tenter une réparation d&rsquo;une installation de SQL Server 2008 ou encore d&rsquo;effectuer une mise à niveau, mais dans ce cas pour changer d&rsquo;édition de SQL Server (pas de version):</p>
<p><img src="http://blog.developpez.com/media/installSQLServer2008-12.JPG" width="802" height="471" alt="" /></p>
<p>Les outils vous permettent de faire un état de ce qui est installé sur la machine, ou de mettre à niveau des packages SSIS 2005 vers 2008 (donc impossible de migrer un DTS 2000 vers un package SSIS 2008 directement).<br />
On retrouve l&rsquo;<em>outil d&rsquo;analyse de la configuration système</em> que nous avons exécuté précédemment :</p>
<p><img src="http://blog.developpez.com/media/installSQLServer2008-13.JPG" width="802" height="471" alt="" /></p>
<p>La page <em>Ressources</em> permet d&rsquo;accéder à tout le contenu web de Microsoft concernant SQL Server 2008:</p>
<p><img src="http://blog.developpez.com/media/installSQLServer2008-14.JPG" width="721" height="589" alt="" /></p>
<p>Enfin il est possible de réaliser une installation avancée basée sur un fichier de configuration, et de préparer / activer un cluster de basculement SQL Server :</p>
<p><img src="http://blog.developpez.com/media/installSQLServer2008-15.JPG" width="800" height="351" alt="" /></p>
<p>La suite des étapes de préparation de l&rsquo;installation parle d&rsquo;elle-même :</p>
<p><img src="http://blog.developpez.com/media/installSQLServer2008-16.JPG" width="800" height="351" alt="" /></p>
<p>Une nouvelle vérification des éléments qui peuvent entraver le déroulement correct de l&rsquo;installation est effectuée :</p>
<p><img src="http://blog.developpez.com/media/installSQLServer2008-17.JPG" width="822" height="617" alt="" /></p>
<p>Il est possible de choisir une édition de SQL Server, elles sont toutes regroupées dans ce package :</p>
<p><img src="http://blog.developpez.com/media/installSQLServer2008-18_01.JPG" width="823" height="616" alt="" /></p>
<p>La CLUF SQL Server 2008 :</p>
<p><img src="http://blog.developpez.com/media/installSQLServer2008-19.JPG" width="823" height="615" alt="" /></p>
<p>Les fichier nécessaires à l&rsquo;installation sont ensuite copiés sur un des disques durs de la machine hôté, comme spécifié dans la page &laquo;&nbsp;<em>Options</em>&nbsp;&raquo;</p>
<p><img src="http://blog.developpez.com/media/installSQLServer2008-20.JPG" width="821" height="615" alt="" /></p>
<p>Ici nous voyons un avertissement apparaître :</p>
<p><img src="http://blog.developpez.com/media/installSQLServer2008-21.JPG" width="729" height="546" alt="" /></p>
<p>Rien de bien méchant :</p>
<p><img src="http://blog.developpez.com/media/installSQLServer2008-22.JPG" width="801" height="145" alt="" /></p>
<p>Le lien référencé pointe vers la <a href="http://msdn.microsoft.com/fr-fr/library/cc646023.aspx">cette page</a> qui donne la liste des ports à ouvrir dans le pare-feu suivant les fonctionnalités que l&rsquo;on va installer.<br />
Si l&rsquo;on installe que le moteur de base de données SQL Server 2008, il faudra ouvrir le port 1433.</p>
<p>Ensuite, il suffit de sélectionner toutes les fonctionnalités et composants à installer.<br />
N&rsquo;oubliez pas les &laquo;&nbsp;outils de gestion&nbsp;&raquo; : il s&rsquo;agit en fait de <em>SQL Server Management Studio</em> <img src="https://blog.developpez.com/elsuket/wp-includes/images/smilies/icon_wink.gif" alt=";)" class="wp-smiley" /></p>
<p><img src="http://blog.developpez.com/media/installSQLServer2008-23.JPG" width="807" height="602" alt="" /></p>
<p>On peut choisir d&rsquo;installer une instance par défaut ou nommée, et une liste des instances SQL Server installées sur la machine est affichée :</p>
<p><img src="http://blog.developpez.com/media/installSQLServer2008-24.JPG" width="850" height="635" alt="" /></p>
<p>Un aperçu de l&rsquo;espace disque est calculé :</p>
<p><img src="http://blog.developpez.com/media/installSQLServer2008-25.JPG" width="850" height="634" alt="" /></p>
<p>Une bonne nouveauté : il est possible de configurer les services relatifs aux fonctionnalités choisies à l&rsquo;installation, ainsi que le service SQL Browser &#8230;</p>
<p><img src="http://blog.developpez.com/media/installSQLServer2008-26.JPG" width="849" height="635" alt="" /></p>
<p>Mais aussi la collation pour l&rsquo;instance du moteur de base de données comme pour SSAS &#8230;</p>
<p><img src="http://blog.developpez.com/media/installSQLServer2008-27.JPG" width="850" height="634" alt="" /></p>
<p><img src="http://blog.developpez.com/media/installSQLServer2008-28.JPG" width="520" height="417" alt="" /></p>
<p>de choisir le mode d&rsquo;authentification (ici pas de nouveauté par rapport à l&rsquo;installation de SQL Server 2005) :</p>
<p><img src="http://blog.developpez.com/media/installSQLServer2008-29.JPG" width="848" height="633" alt="" /></p>
<p>De configurer l&rsquo;emplacement des divers fichiers de base de données (enfin !)</p>
<p><img src="http://blog.developpez.com/media/installSQLServer2008-30.JPG" width="880" height="551" alt="" /></p>
<p>Comme SQL Server 2008 introduit la fonctionnalité FILESTREAM, il est possible de la configurer ici :</p>
<p><img src="http://blog.developpez.com/media/installSQLServer2008-31.JPG" width="1002" height="629" alt="" /></p>
<p>De configurer directement une instance de Reporting Services, ce qui est également bienvenu :</p>
<p><img src="http://blog.developpez.com/media/installSQLServer2008-32.JPG" width="900" height="565" alt="" /></p>
<p>Vous pouvez également préciser si vous souhaitez envoyer des rapports d&rsquo;erreur à Microsoft :</p>
<p><img src="http://blog.developpez.com/media/installSQLServer2008-33.JPG" width="850" height="532" alt="" /></p>
<p>Nouvelle vérification :</p>
<p><img src="http://blog.developpez.com/media/installSQLServer2008-34.JPG" width="850" height="532" alt="" /></p>
<p>Un résumé des modules qui vont être installés vous est affiché :</p>
<p><img src="http://blog.developpez.com/media/installSQLServer2008-35.JPG" width="849" height="533" alt="" /></p>
<p>Le processus d&rsquo;installation à proprement parler commence alors :</p>
<p><img src="http://blog.developpez.com/media/installSQLServer2008-36.JPG" width="1000" height="627" alt="" /></p>
<p>Un court résumé de l&rsquo;installation s&rsquo;affiche dès la fin de celle-ci &#8230;</p>
<p><img src="http://blog.developpez.com/media/installSQLServer2008-37.JPG" width="999" height="628" alt="" /></p>
<p>&#8230; et vous pouvez accéder au journal d&rsquo;installation :</p>
<p><img src="http://blog.developpez.com/media/installSQLServer2008-38_01.JPG" width="849" height="532" alt="" /></p>
<p>On regrettera que les protocoles réseau doivent toujours être configurés manuellement à l&rsquo;aide du <em>Gestionnaire de configuration SQL Server</em>, nécessitant le redémarrage du service SQL Server &#8230;</p>
<p>ElSuket</p>
]]></content:encoded>
			<wfw:commentRss></wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Générer le script de tables et des données qu&#8217;elles contiennent avec SSMS 2008</title>
		<link>https://blog.developpez.com/elsuket/p7902/utilitaires/generer_le_script_de_tables_et_des_donne_2008</link>
		<comments>https://blog.developpez.com/elsuket/p7902/utilitaires/generer_le_script_de_tables_et_des_donne_2008#comments</comments>
		<pubDate>Sun, 26 Jul 2009 11:34:35 +0000</pubDate>
		<dc:creator><![CDATA[elsuket]]></dc:creator>
				<category><![CDATA[SQL Server Management Studio]]></category>
		<category><![CDATA[Utilitaires]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[SQL Server Management Studio 2008 introduit le scriptage des données des tables. Le scriptage se fait toujours à l&#8217;aide de l&#8217;Assistant Script, mais il faut aller chercher l&#8217;option pour en scripter également les données Pour cet exemple, nous prenons la &#8230; <a href="https://blog.developpez.com/elsuket/p7902/utilitaires/generer_le_script_de_tables_et_des_donne_2008">Lire la suite <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>SQL Server Management Studio 2008 introduit le scriptage des données des tables.<br />
Le scriptage se fait toujours à l&rsquo;aide de l&rsquo;<em>Assistant Script</em>, mais il faut aller chercher l&rsquo;option pour en scripter également les données</p>
<p><span id="more-142"></span></p>
<p>Pour cet exemple, nous prenons la petite table suivante :</p>
<div class="codecolorer-container text vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">--------------------------------- <br />
-- Nicolas SOUQUET - 26/07/2009 - <br />
--------------------------------- <br />
CREATE TABLE TbParametres <br />
( <br />
&nbsp; IDParametre INT NOT NULL IDENTITY CONSTRAINT PK_TbParametres_IDParametre PRIMARY KEY, <br />
&nbsp; nomParametre VARCHAR(20) NOT NULL CONSTRAINT UQ_TbParametres_nomParametre UNIQUE <br />
) <br />
GO <br />
&nbsp;<br />
INSERT INTO dbo.TbParametres(nomParametre) <br />
VALUES ('Parametre1'), <br />
&nbsp; &nbsp; ('Parametre2'), <br />
&nbsp; &nbsp; ('Parametre3') <br />
GO <br />
&nbsp;<br />
SELECT IDParametre, nomParametre <br />
FROM dbo.TbParametres</div></td></tr></tbody></table></div>
<p>Nous voulons maintenant scripter le DDL de cette table ainsi que les données stockées par celle-ci.<br />
Nous choisissons l&rsquo;option &laquo;&nbsp;Générer des scripts&nbsp;&raquo; du menu &laquo;&nbsp;Tâches&nbsp;&raquo; que l&rsquo;on trouve dans menu contextuel de la base de données contenant la table TbParametres, en l&rsquo;occurence ELSUKET.</p>
<p><img src="http://blog.developpez.com/media/GenererScriptDonneesTables1.png" width="809" height="640" alt="" /></p>
<p>Nous obtenons la boîte suivante :</p>
<p><img src="http://blog.developpez.com/media/GenererScriptDonneesTables2.png" width="491" height="448" alt="" /></p>
<p>En cliquant sur &laquo;&nbsp;<em>Suivant</em>&laquo;&nbsp;, nous obtenons, comme avec SSMS 2005, la liste des options de script, et l&rsquo;on voit que l&rsquo;option &laquo;&nbsp;<em>Générer le script des données</em>&nbsp;&raquo; a été ajoutée :</p>
<p><img src="http://blog.developpez.com/media/GenererScriptDonneesTables3.png" width="684" height="730" alt="" /></p>
<p>Il suffit bien sûr de la positionner à &laquo;&nbsp;<em>True</em>&nbsp;&raquo; pour obtenir le script des INSERT de toutes les lignes des tables que nous allons choisir :</p>
<p><img src="http://blog.developpez.com/media/GenererScriptDonneesTables4.png" width="493" height="449" alt="" /></p>
<p><img src="http://blog.developpez.com/media/GenererScriptDonneesTables5.png" width="493" height="449" alt="" /></p>
<p>L&rsquo;option &laquo;&nbsp;<em>Générer un script dans une nouvelle fenêtre de requête</em>&nbsp;&raquo; est sélectionnée par défaut.</p>
<p><img src="http://blog.developpez.com/media/GenererScriptDonneesTables6.png" width="493" height="449" alt="" /></p>
<p>Comme d&rsquo;habitude, nous obtenons un résumé des scripts à générer :</p>
<p><img src="http://blog.developpez.com/media/GenererScriptDonneesTables7.png" width="492" height="449" alt="" /></p>
<p>Et peu après avoir cliqué sur &laquo;&nbsp;Terminer&nbsp;&raquo;, nous obtenons le script suivant :</p>
<div class="codecolorer-container text vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;height:300px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br />23<br />24<br />25<br />26<br />27<br />28<br />29<br />30<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">USE [ELSUKET] <br />
GO <br />
/****** Object: &nbsp;Table [dbo].[TbParametres] &nbsp; &nbsp;Script Date: 07/26/2009 12:10:22 ******/ <br />
SET ANSI_NULLS ON <br />
GO <br />
SET QUOTED_IDENTIFIER ON <br />
GO <br />
SET ANSI_PADDING ON <br />
GO <br />
CREATE TABLE [dbo].[TbParametres]( <br />
&nbsp; [IDParametre] [int] IDENTITY(1,1) NOT NULL, <br />
&nbsp; [nomParametre] [varchar](20) NOT NULL, <br />
&nbsp;CONSTRAINT [PK_TbParametres_IDParametre] PRIMARY KEY CLUSTERED &nbsp;<br />
( <br />
&nbsp; [IDParametre] ASC <br />
)WITH (PAD_INDEX &nbsp;= OFF, STATISTICS_NORECOMPUTE &nbsp;= OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS &nbsp;= ON, ALLOW_PAGE_LOCKS &nbsp;= ON) ON [PRIMARY], <br />
&nbsp;CONSTRAINT [UQ_TbParametres_nomParametre] UNIQUE NONCLUSTERED &nbsp;<br />
( <br />
&nbsp; [nomParametre] ASC <br />
)WITH (PAD_INDEX &nbsp;= OFF, STATISTICS_NORECOMPUTE &nbsp;= OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS &nbsp;= ON, ALLOW_PAGE_LOCKS &nbsp;= ON) ON [PRIMARY] <br />
) ON [PRIMARY] <br />
GO <br />
SET ANSI_PADDING OFF <br />
GO <br />
&nbsp;<br />
SET IDENTITY_INSERT [dbo].[TbParametres] ON <br />
INSERT [dbo].[TbParametres] ([IDParametre], [nomParametre]) VALUES (1, N'Parametre1') <br />
INSERT [dbo].[TbParametres] ([IDParametre], [nomParametre]) VALUES (2, N'Parametre2') <br />
INSERT [dbo].[TbParametres] ([IDParametre], [nomParametre]) VALUES (3, N'Parametre3') <br />
SET IDENTITY_INSERT [dbo].[TbParametres] OFF</div></td></tr></tbody></table></div>
<p>ElSuket</p>
]]></content:encoded>
			<wfw:commentRss></wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Filtrer l&#8217;affichage des objets d&#8217;une base de données</title>
		<link>https://blog.developpez.com/elsuket/p7720/utilitaires/filtrer_l_affichage_des_objets_d_une_bas</link>
		<comments>https://blog.developpez.com/elsuket/p7720/utilitaires/filtrer_l_affichage_des_objets_d_une_bas#comments</comments>
		<pubDate>Mon, 08 Jun 2009 21:49:18 +0000</pubDate>
		<dc:creator><![CDATA[elsuket]]></dc:creator>
				<category><![CDATA[SQL Server Management Studio]]></category>
		<category><![CDATA[Utilitaires]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Il est possible dans SQL Server Management Studio, sous les nodes regroupant les objets de bases de données (tables, procédures stockées, fonctions et vues) de filtrer l&#8217;affichage des objets suivant plusieurs critères. Cela est très pratique si l&#8217;on a beaucoup &#8230; <a href="https://blog.developpez.com/elsuket/p7720/utilitaires/filtrer_l_affichage_des_objets_d_une_bas">Lire la suite <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>Il est possible dans SQL Server Management Studio, sous les nodes regroupant les objets de bases de données (tables, procédures stockées, fonctions et vues) de filtrer l&rsquo;affichage des objets suivant plusieurs critères.<br />
Cela est très pratique si l&rsquo;on a beaucoup d&rsquo;objets, et surtout si l&rsquo;on a adopté une convention de nommage stricte&#8230;</p>
<p><span id="more-139"></span></p>
<p>Sous SQL Server 2005 Management Studio, il est permis de filtrer suivant 3 critères :</p>
<p>&#8211; Le nom des objets,<br />
&#8211; Le schéma des objets,<br />
&#8211; la date de création des objets.</p>
<p>SQL Server 2008 Management Studio permet en plus de filtrer sur le propriétaire de l&rsquo;objet.</p>
<p>Voyons comment, sous ces deux interfaces graphiques, réaliser un filtrage.<br />
Nous prendrons pour exemple un filtrage sur le nom des tables, mais le procédé est strictement le même pour tous les autres objets de base de données :</p>
<p>Un clic droit sur la node de type d&rsquo;objet de la base de données produit l&rsquo;affichage suivant :</p>
<p><img src="http://blog.developpez.com/media/filtreclicdroit.PNG" width="500" height="366" alt="" /></p>
<p>En choisissant &laquo;&nbsp;Paramètres de filtre&nbsp;&raquo;, on obtient :</p>
<p><img src="http://blog.developpez.com/media/filtrecriteres.PNG" width="544" height="448" alt="" /></p>
<p>Voici le jeu de tables que la base de données ELSUKET contient :</p>
<p><img src="http://blog.developpez.com/media/filtrelistetables.PNG" width="405" height="532" alt="" /></p>
<p>Supposons que nous ne voulons voir que les tables dont le nom contient la chaîne &laquo;&nbsp;livraison&nbsp;&raquo; :</p>
<p><img src="http://blog.developpez.com/media/filtrelivraison.PNG" width="544" height="448" alt="" /></p>
<p>Voici le résultat obtenu :</p>
<p><img src="http://blog.developpez.com/media/filtrefinal.PNG" width="408" height="499" alt="" /></p>
<p>Pour revenir à l&rsquo;affichage de toutes les tables, il suffit de choisir l&rsquo;option &laquo;&nbsp;Supprimer un filtre&nbsp;&raquo; dans le menu contextuel de filtrage des tables.<br />
On peut aussi changer les critères en retournant dans &laquo;&nbsp;Paramètres de filtre&nbsp;&raquo;.<br />
En revanche on ne peut pas saisir plusieurs critères : une fonctionnalité appréciable aurait été de pouvoir filtrer sur plusieurs chaînes &#8230;</p>
<p>ElSuket</p>
]]></content:encoded>
			<wfw:commentRss></wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>SSMS : Tâches sur plusieurs objets de même type à partir des Détails de l&#8217;explorateur d&#8217;objet</title>
		<link>https://blog.developpez.com/elsuket/p7722/utilitaires/ssms_taches_sur_plusieurs_objets_de_meme</link>
		<comments>https://blog.developpez.com/elsuket/p7722/utilitaires/ssms_taches_sur_plusieurs_objets_de_meme#comments</comments>
		<pubDate>Mon, 08 Jun 2009 22:28:03 +0000</pubDate>
		<dc:creator><![CDATA[elsuket]]></dc:creator>
				<category><![CDATA[SQL Server Management Studio]]></category>
		<category><![CDATA[Utilitaires]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Il est possible d&#8217;utiliser l&#8217;explorateur d&#8217;objets pour sélectionner plusieurs objets de même type à la souris, pour ensuite pouvoir les supprimer (comme on le ferait dans l&#8217;explorateur de fichiers de Windows) ou les scripter &#8230; L&#8217;onglet &#171;&#160;Détails de l&#8217;explorateur d&#8217;objet&#160;&#187; &#8230; <a href="https://blog.developpez.com/elsuket/p7722/utilitaires/ssms_taches_sur_plusieurs_objets_de_meme">Lire la suite <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>Il est possible d&rsquo;utiliser l&rsquo;explorateur d&rsquo;objets pour sélectionner plusieurs objets de même type à la souris, pour ensuite pouvoir les supprimer (comme on le ferait dans l&rsquo;explorateur de fichiers de Windows) ou les scripter &#8230;</p>
<p><span id="more-140"></span></p>
<p>L&rsquo;onglet &laquo;&nbsp;<em>Détails de l&rsquo;explorateur d&rsquo;objet</em>&nbsp;&raquo; est accessible :</p>
<p>&#8211; sous <em>SQL Server Management Studio 2005</em>, en allant dans le menu <em>Affichage</em>, et en choissant l&rsquo;option <em>Détails de l&rsquo;explorateur d&rsquo;objet</em></p>
<p>&#8211; sous <em>SQL Server Management Studio 2008</em>, de la même façon, ou en utilisant le raccourci clavier F7</p>
<p>Voyons maintenant comment un peut se servir de celui-ci.<br />
Supposons que je veux scripter la structure de plusieurs tables, procédures stockées ou jobs : ci-dessous je donne l&rsquo;exemple pour des tables, mais le principe demeure le même pour les objets cités :</p>
<p>Pour effectuer la sélection des objets, il suffit d&rsquo;accéder directement aux <em>Détails de l&rsquo;explorateur d&rsquo;objet</em> comme décrit précédemment, puis de naviguer jusqu&rsquo;au type d&rsquo;objet pour lequel on veut effectuer des tâches :</p>
<p><img src="http://blog.developpez.com/media/details.PNG" width="595" height="277" alt="" /></p>
<p>En choisissant successivement les &laquo;&nbsp;dossiers&nbsp;&raquo; : </p>
<p>&#8211; Bases de données,<br />
&#8211; maBaseDeDonnées<br />
&#8211; Tables</p>
<p>Nous obtenons :</p>
<p><img src="http://blog.developpez.com/media/detailtables.PNG" width="901" height="263" alt="" /></p>
<p>De la même façon que nous sélectionnons plusieurs fichiers ou dossiers dans l&rsquo;explorateur de fichiers de Windows (MAJ + clic gauche), nous pouvons sélectionner, en l&rsquo;occurence, plusieurs tables :</p>
<p><img src="http://blog.developpez.com/media/detailselection.PNG" width="906" height="261" alt="" /></p>
<p>Par un clic droit sur l&rsquo;un des objets sélectionnés, voyons les tâches dont nous disposons :</p>
<p><img src="http://blog.developpez.com/media/detailstaches.PNG" width="856" height="393" alt="" /></p>
<p>Le script de création des tables est alors généré :</p>
<p><img src="http://blog.developpez.com/media/detailscript.PNG" width="800" height="598" alt="" /></p>
<p>On peut aussi supprimer directement ces objets en appuyant sur la touche &laquo;&nbsp;Suppr&nbsp;&raquo;.<br />
Notons que si l&rsquo;on choisit l&rsquo;option &laquo;&nbsp;<em>travail de l&rsquo;agent</em>&laquo;&nbsp;, les tables sont scriptées dans un travail dont vous spécifiez le nom.<br />
Il vous faudra ensuite éditer le travail pour en modifier les propriétés (planification par exemple &#8230;)</p>
<p>ElSuket</p>
]]></content:encoded>
			<wfw:commentRss></wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
