Posts

java - Joining tables in hibernate -

मेरे पास दो टेबल हैं ग्राहक दर ---------- --- ----------- res_number उत्पाद रणनीति का नाम fname प्रकार lname दर ...... ...... और मैंने दो बीन्स बनाईं 1 2. @ एंटिटी @ एंटिटी @Table (name = "customer") @Table (name = "rates") कर्मचारी विवरण (कार्ड का विवरण {@Col (name = "res_number") @col (name = "product") स्ट्रिंग रेनम; स्ट्रिंग उत्पाद; ............}} अब मेरे पास क्वेरी है hql = "कार्ड से संबंधित सीडी, कर्मचारी डिलीवरी ed जहां ed रणनीति = सीडी। प्रोडक्ट " लेकिन यह मुझे संदर्भ देता है hibernate.QueryException: संपत्ति को हल नहीं कर सका: मैंने जोड़ने का प्रयास किया @OneToOne (मैप किए गए = "रणनीति") @ कैस्केड (मान = कैस्केड टाइप। एएल) निजी कर्मचारी विवरण empDetails; CardDetails में लेकिन मुझे कोई त्रुटि नहीं कह रहा है कि OneToOne संभव है और ... कई सेन्टर और एकटैम में बदलने की कोशिश की लेकिन काम नहीं करता किसी को भी कृपया मुझे बताओ कैसे एनोटेशन के साथ जुड़ने के लिए बीन्स को मैप करने के लिए? नोट: डेट...

@JeromeLouvel better understanding of Restlet -

Is there a place or a way to get full information on taking advantage of the Restlet API? Specifically .... What is the difference by telling the server: New server (protocol., HTTP, 8800, simplestart class). Start (); And like this: server hello server = new server (protocol. Html, 8111, myststuff.class); HelloServer.start (); / / and like this: server nserver = new server (protocol. , 8110); NServer.setNext (new MyTestServer ()); // where the MyTestServer class is referenced nerver.start (); And finally it: component component = new component (); // Create a new component component. Getserve () Add (protocol .http, 8200); Component.getDefaultHost (). Attached (new SimpleApplication ()); Component.start (); So I think I lack the right understanding of how some methods are being used. Now the book does not really and really clarifies such nuances, nor does it actually highlight how to take advantage: directory, routing, context, application, filter, messag...

css - contents overflowing container in bootstrap 3.0 -

Image
I have this website: My problem is that when I open a website on my iPhone website Fills the iPhone's screen, but there is some website that has more website compared to the width of the screen, there is a padding that I can not find, there is a background on the top of the website, I do not even know Is that where it's coming from, maybe it's related? Please tell me, thank you The problem is that you change the grid classes And padding 0 in the container square left and right grid works in 3 parts and each is necessary. You get the right ingredients in it: containers, rows and columns, it's just that you've made adjustments in the padding breaks of the natural behavior of the grid. How Grid Works By default, the container has 15px padding. Row breaks container padding with -15px margin. The column has 15 padding padding, which pulls the material away from the edges of the container and forms a consistent 30 px groove. The purpose of adding 15px p...

Low Latency Aggregations on Cassandra -

We are using a lot of time series metrics in our system. We can not handle written load with our existing infrastructure. Therefore, we are evaluating the cassandra. More information about our current Realtime system We collect application specific time series metrics We will assign them a DB Here we have sampling of data {appId: 'applicationId', route: 'root name', time: 1406845866304, resTime: 500, dbTime: 200} After the data, we are collecting them at various proposals on time For example, we have Trackers per metric Pre-aggregated data for 1 minute, 30 minutes, 3 hours, day of Resolution Then ask our front Aend app different question below. We do adhoc aggregation to Acer them. Give me the average resume for this X time period List me the top 10 routes that have high resume Concerns with Casandra We can pre-aggregate with some background jobs running. But we need to do adhoc queries under low latency (less then 5ms). With our p...

php - how to echo/display the custom field value of a specific custom field name? -

मैंने इस कोड की कोशिश की है: & lt;? Php query_posts (array ('मेटा_की' = & gt; 'custom_cat', 'meta_value' = & gt; 'रचनात्मक', 'पोस्ट_प्रकार' = & gt; 'पृष्ठ')); गूंज & lt; ul id = "creative_services" class = "clearfix पंक्ति" & gt; '; यदि (है_पोज़ ()) जबकि (है_पोज़ ()): the_post (); गूंज & lt; li वर्ग = "col-md-3" & gt; '; प्रतिध्वनि '& lt; एक वर्ग = "पॉपओवर-खारिज" डेटा-टॉगल = "पॉपओवर" शीर्षक = "'; प्रतिलिपि $ पोस्ट- & gt; पोस्ट_ शीर्षक; गूंज; '' डेटा-प्लेसमेंट =" नीचे "डेटा-सामग्री =" '; गूंज; $ Post- & gt; post_content; echo '' & gt; & lt; i class = "'; get_post_meta (get_the_ID),' fa_icon '); ईको' '& gt; & lt; / i & gt; & lt; / a & gt;'; गूंज & lt; h3 & gt; '; शीर्षक(); गूंज '& lt; / h3 & gt;'; endw...

ios - Adding Swift Closures as values to Swift dictionary -

I would like to make a swift dictionary that has string type keys and its values ​​in the form of closures. The following is the code I have, but it gives me an error: '@lawlue' is not the same (string, () -> zero) ' class commander {Private var command dict: [string: () - & gt; Zero]! Init () {self.setUpCommandDict (); } Func setUpCommandDict () {self.commandDict ["OpenAssessment_1"] = {println ("I'm locked inside"); }}} I have tried to see other questions on stack overflow, but it does not give me any satisfactory answer. So I would appreciate some help here. If you call your init before your setup function, Should work: class CommandResolver {private var commandDict: [string: () - & gt; Zero] init () {commandDict = [:] setUpCommandDict ()} func setUpCommandDict () {commandDict ["OpenAssessment_1"] = {println ("I'm locked inside")}}}

Using local username in a string that connects to a database? -

मेरे पास निम्न कोड है: उप get_Environmental_Variable () मंद sHostName के रूप में स्ट्रिंग दीम sUserName जैसा कि स्ट्रिंग 'होस्ट नाम मिलता है / कंप्यूटर नाम प्राप्त करें sHostName = Environ $ ("computername")' वर्तमान उपयोगकर्ता नाम sUserName = एंवायर $ ("उपयोगकर्ता नाम") अंत उप अब मैं चाहता हूँ मेरे डेटाबेस से कनेक्ट करते समय " डालें " कंप्यूटर उपयोगकर्ता नाम: डेटा स्रोत = सी: \ उपयोगकर्ता \ मेरा.उपयोगकर्ता नाम \ डेस्कटॉप \ डेटाबेस.एसीडीबी मैं उपरोक्त कोड से फ़ाइलपेथ में जिस प्रयोक्ता नाम को खींचना है उसे " My.Username " वर्तमान में कैसे मौजूद है? आपको शायद खुद को पथ बनाने का प्रयास नहीं करना चाहिए और इसके बजाय उपयोग करना चाहिए। विशेष रूप से: पर्यावरण। विशिष्टफ़ोल्डर। डेस्कटॉपको डायरेक्टरी